Discussion Groups

Robot Structural Analysis

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

Substructure modification through API

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

Hi,

 

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

 

Thanks

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

Re: Substructure modification through API

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

Hi

 

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.