Discussion Groups

Robot Structural Analysis

Active Contributor
Posts: 49
Registered: ‎12-11-2011
Accepted Solution

Substructure modification through API

120 Views, 1 Replies
12-12-2011 03:04 PM



Is it possible to call the equivalent of 'edit substructure in new view' through the API based on the current selection?



Please use plain text.
Product Support
Posts: 4,993
Registered: ‎04-26-2010

Re: Substructure modification through API

12-13-2011 12:39 AM in reply to: sorgjee



You have to create new view like this :


Dim viewRobot As IRobotView3 ' this is important to set IRobotView3 if you want to make screen capture of this view


' Set viewRobot = RobApp.Project.ViewMngr.CreateView(1) 

Set viewRobot = RobApp.Project.ViewMngr.GetView(1) ' it seems CreateView makes this strange affect, use GetView instead

viewRobot.Redraw (True)

viewRobot.Visible = True


viewRobot.Selection.Get(I_OT_BAR).FromText ("1 2 3 4 5") ' selecting bars
viewRobot.Selection.Get(I_OT_CASE).FromText ("1") ' selecting case

viewRobot.Redraw (0)

Rafal Gaweda
Please use plain text.