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: 

View with isolated elements via ROS API

1 REPLY 1
SOLVED
Reply
Message 1 of 2
halord
596 Views, 1 Reply

View with isolated elements via ROS API

Hello there,

Is there any posibility to create new view that display only currently selected objects via ROS API? (something similar like isolation in 3dsmax or Autocad). In Robot GUI there is some icons that can do that but I cannot see reflected methods/properties in SDK documentation.

 

isolate_elements.png

 

In most cases API covers graphical interface and more, but not in this particular case (or I simply miss something).To create new view I acces RobotApplication.Project.ViewMngr.CreateView(I_VT_STANDARD) but this creates view with all elements visible. Is there any way to filter out selection in newly created window? Please help, I'm totally stuck...

Tags (4)
1 REPLY 1
Message 2 of 2
Rafal.Gaweda
in reply to: halord

Example code:

 

Set RobApp = New RobotApplication
  
     

    Dim viewRobot As IRobotView3
    
    Dim Rsel As RobotSelection
    Set Rsel = RobApp.Project.Structure.Selections.Create(I_OT_BAR)
    Rsel.FromText "2"
    
    Set viewRobot = RobApp.Project.ViewMngr.CreateView(I_VT_STANDARD)

    viewRobot.Selection.Set I_OT_BAR, Rsel
    viewRobot.Visible = True
    viewRobot.Redraw (0)
    RobApp.Project.ViewMngr.Refresh

 



Rafal Gaweda

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

Post to forums  

Autodesk Design & Make Report