Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Robot-API BeamsColor

3 REPLIES 3
Reply
Message 1 of 4
medtayeb
374 Views, 3 Replies

Robot-API BeamsColor

Hi,

 

I used  IRobotView2 to see a structure. 
The application goes through every level,then for each level identifies and tests each beam.


how to color the ( current ) beam to be  tested.

 

Thanks.

 
 
3 REPLIES 3
Message 2 of 4
Rafal.Gaweda
in reply to: medtayeb

Make selection ? Should be in red.



Rafal Gaweda
Message 3 of 4
medtayeb
in reply to: medtayeb

 

Hi

 

I tried that but no selection appears on  view    ( IRobotView2 MyStrView )

 

IRobotSelection MyBarSelected = MyStrView.Selection.Get(IRobotObjectType.I_OT_BAR);

             

                       

for (num_bar = 1; num_bar <= MyBarSelected.Count; num_bar++)

                {

                 

                    MyBarSelected.Get(num_bar);

........

}

 

Many thanks for help.

 

 

 

Message 4 of 4
Rafal.Gaweda
in reply to: medtayeb

example code :

 

Dim sObj As RobotSelection
Set sObj = RobApp.Project.Structure.Selections.Get(I_OT_BAR) Dim sObj1 As RobotSelection Set sObj1 = RobApp.Project.Structure.Selections.Create(I_OT_BAR) If ((Not sObj Is Nothing) And (Not sObj1 Is Nothing)) Then sObj1.FromText ("3") sObj.Add sObj1 End If

 



Rafal Gaweda

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report