highlight only particular elements (which haven't passed the mesh quality test)

highlight only particular elements (which haven't passed the mesh quality test)

Anonymous
Not applicable
408 Views
2 Replies
Message 1 of 3

highlight only particular elements (which haven't passed the mesh quality test)

Anonymous
Not applicable

I wrote this line in my C# project:

 

wall1.Mesh.GetQuality(out double _out_q1, out double _out_q2, out string _out_fes, 0.01, "All");

 

_out_fes thus contains a list of all elements which have failed the mesh quality test. I now want to highlight only these failed elements in my ROBOT drawing. How can I achieve this through the API? 

 

Looking forward to your guidance.

 

0 Likes
Accepted solutions (1)
409 Views
2 Replies
Replies (2)
Message 2 of 3

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

Hi @Anonymous

 

Highlighted objects in Robot are selected objects.

First you need to Get such selection with API (it can be empty). Then fill it with your list = string

Example:

 

    Dim RSelection As RobotSelection
    Set RSelection = RobApp.Project.Structure.Selections.Get(I_OT_FINITE_ELEMENT)
    RSelection.FromText ""
    RSelection.FromText YOUR_STRING


Rafal Gaweda
0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi @Rafal.Gaweda,

 

Thank you so much for the guidance. It works like a charm

0 Likes