• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Robot Structural Analysis

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

    Substructure modification through API

    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

    Please use plain text.
    Product Support
    Posts: 2,527
    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
    Product Support
    Autodesk, Inc.
    Please use plain text.