• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Autodesk Robot Structural Analysis

    Reply
    Contributor
    Posts: 19
    Registered: ‎05-20-2012

    Robot-API Beams-highlight

    191 Views, 3 Replies
    09-28-2012 01:08 AM

    Hi,

     

     

    the purpose of the API application is :

     


     Creates a selection by storey

     

       

      MyLevelSelection = app.Project.Structure.Selections.CreateByStoreyIRobotObjectType.I_OT_BAR,       MyLevel.Name);

     

    Sets  the selection in the structural view   (IRobotView2  MyStrView)

     

    MyStrView.Selection.Set(IRobotObjectType.I_OT_BAR, (RobotSelection)MyLevelSelection);


    Is there a way to put the bars  Selected highlighted only with a code.  ( without clicking in a structural view) ?

     

     

     
     Many thanks.
     
    Tayeb.
    Please use plain text.
    Product Support
    Posts: 2,543
    Registered: ‎04-26-2010

    Re: Robot-API Beams-highlight

    09-28-2012 01:45 AM in reply to: medtayeb

    I will look at it next week. Sorry.



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Product Support
    Posts: 2,543
    Registered: ‎04-26-2010

    Re: Robot-API Beams-highlight

    10-11-2012 12:54 AM in reply to: RG_Adsk

    example code

     

    Dim sObj As RobotSelection
    Set sObj = RobApp.Project.Structure.Selections.Get(I_OT_BAR) Dim sObj1 As RobotSelection Set sObj1 = RobApp.Project.Structure.Selections.Create(I_OT_BAR) If ((Not sObj Is Nothing) And (Not sObj1 Is Nothing)) Then sObj1.FromText ("3") sObj.Add sObj1 End If


    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Contributor
    Posts: 19
    Registered: ‎05-20-2012

    Re: Robot-API Beams-highlight

    10-11-2012 08:31 AM in reply to: RG_Adsk
    Hi OK, Many thanks. Tayeb.
    Please use plain text.