Autodesk Robot Structural Analysis
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Substructu re modificati on through API
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
94 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
Solved! Go to Solution.
Re: Substructu re modificati on through API
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
Product Support
Autodesk, Inc.
