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 Beams-highlight

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

Robot-API Beams-highlight

Hi,

 

 

the purpose of the API application is :

 


 Creates a selection by storey

 

   

  MyLevelSelection = app.Project.Structure.Selections.CreateByStoreyIRobotObjectType.I_OT_BAR,       MyLevel.Name);

 

Sets  the selection in the structural view   (IRobotView2  MyStrView)

 

MyStrView.Selection.Set(IRobotObjectType.I_OT_BAR, (RobotSelection)MyLevelSelection);


Is there a way to put the bars  Selected highlighted only with a code.  ( without clicking in a structural view) ?

 

 

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

I will look at it next week. Sorry.



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

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
Message 4 of 4
medtayeb
in reply to: Rafal.Gaweda

Hi OK, Many thanks. Tayeb.

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

Post to forums  

Autodesk Design & Make Report