Community
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) ?
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