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.
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...
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
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