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: 

Substructure modification through API

1 REPLY 1
SOLVED
Reply
Message 1 of 2
sorgjee
329 Views, 1 Reply

Substructure modification through API

Hi,

 

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

 

Thanks

1 REPLY 1
Message 2 of 2
Rafal.Gaweda
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

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

Post to forums  

Autodesk Design & Make Report