Segment name

Hi Soren,

At first and the most important thing is thank you very much because
you have answered fastly to our mails. Your help is being very
important for our proyect developing.

At the moment we are investigating the model for include the name of
each segment. A few months ago you post us the next script:

//Use a AnyDrawvector to display a name

AnyDrawVector DrawName = {

Vec = {0.0,0,0}; //use zero length

Line.Thickness = 0.1; //arbitary value

Text = “Soleus”; //make reference to name

Line.RGB=Main.DrawSettings.Names.RGB;//make reference to color

};

With it we can see the name of each segment when you put your mouse
cursor over.

We are investigating the files of Brep and we don’t know where I
have to insert the script above pasted. We tried putting the script
on the file “Arm3D/Muscle.any” and
on “DrawSettings/MusDrawSettings.any”, but this test was wrong. We
want that the only visualized name will be of the most important
parts, so we have thought use the “Seg.any” file, could we include
the script in this file? We think that is a good idea, because on
this file are declared the most important arm parts.

I hope I have explained correctly.

I need that you say to me If I am on the correct way or not, and
where I could include the script.

Thank you for your attention.

Regards.

Hi Raul

Thanks for the kind words.

I will give you a small exampel on how you can apply a name on a
muscles.

This small script will add the name “coracobrachialis” to the origin
point of the muscle. You can find this muscle in the
brep/aalborg/arm3d/muscle.any file.

AnyViaPointMuscle coracobrachialis_6 = {

AnyMuscleModel &MusMdl = …MusPar.coracobrachialis_6;

AnyRefNode &Org = …Seg.Scapula.O_coracobrachialis_6;

AnyRefNode &Ins = …Seg.Humerus.I_coracobrachialis_6;

Org={

 AnyDrawVector  DrawName = {

Vec = {0.0,0,0};  //use zero length

Line.Thickness = 0.1; //arbitary value

Text = “Coracobrachialis”; //make reference to name

Line.RGB=Main.DrawSettings.Names.RGB;//make reference to color

};

};

I think your mistake might have been that the AnyDrawVector where
not applied to a Reference frame like a node or segment. In order to
work the AnyDrawVector must be applied to the correct object, please
see the reference manual for further details.

So if you want the names for the segment to be displayed you should
add the AnyDrawVector inside the segment folder or in a node on the
segment.

You write that the name will appear when the mouse is above the
objects, this is not possible. The names applied with the
AnyDrawVector will always be visible, unless they are switched of
and the model is being reloaded.

Best regards
Søren, AnyBody Support

— In anyscript@yahoogroups.com, “raulborrazlamiel”
<raulborrazlamiel@…> wrote:
>
> Hi Soren,
>
>
>
> At first and the most important thing is thank you very much
because
> you have answered fastly to our mails. Your help is being very
> important for our proyect developing.
>
> At the moment we are investigating the model for include the name
of
> each segment. A few months ago you post us the next script:
>
>
>
> //Use a AnyDrawvector to display a name
>
> AnyDrawVector DrawName = {
>
> Vec = {0.0,0,0}; //use zero length
>
> Line.Thickness = 0.1; //arbitary value
>
> Text = “Soleus”; //make reference to name
>
> Line.RGB=Main.DrawSettings.Names.RGB;//make reference to color
>
> };
>
>
>
> With it we can see the name of each segment when you put your
mouse
> cursor over.
>
> We are investigating the files of Brep and we don’t know where I
> have to insert the script above pasted. We tried putting the
script
> on the file “Arm3D/Muscle.any” and
> on “DrawSettings/MusDrawSettings.any”, but this test was wrong. We
> want that the only visualized name will be of the most important
> parts, so we have thought use the “Seg.any” file, could we include
> the script in this file? We think that is a good idea, because on
> this file are declared the most important arm parts.
>
> I hope I have explained correctly.
>
> I need that you say to me If I am on the correct way or not, and
> where I could include the script.
>
>
>
> Thank you for your attention.
>
> Regards.
>