Discussion Groups

Robot Structural Analysis

Reply
Active Contributor
medtayeb
Posts: 28
Registered: ‎05-20-2012

Robot-API Beams-highlight

234 Views, 3 Replies
09-28-2012 01:08 AM

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.
Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,498
Registered: ‎04-26-2010

Re: Robot-API Beams-highlight

09-28-2012 01:45 AM in reply to: medtayeb

I will look at it next week. Sorry.



Rafal Gaweda
Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,498
Registered: ‎04-26-2010

Re: Robot-API Beams-highlight

10-11-2012 12:54 AM 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
Please use plain text.
Active Contributor
medtayeb
Posts: 28
Registered: ‎05-20-2012

Re: Robot-API Beams-highlight

10-11-2012 08:31 AM in reply to: Rafal.Gaweda
Hi OK, Many thanks. Tayeb.
Please use plain text.