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

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

    Robot-API BeamsColor

    191 Views, 3 Replies
    09-25-2012 04:38 AM

    Hi,

     

    I used  IRobotView2 to see a structure. 
    The application goes through every level,then for each level identifies and tests each beam.


    how to color the ( current ) beam to be  tested.

     

    Thanks.

     
     
    Please use plain text.
    Product Support
    Posts: 2,507
    Registered: ‎04-26-2010

    Re: Robot-API BeamsColor

    09-25-2012 05:02 AM in reply to: medtayeb

    Make selection ? Should be in red.



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

    Re: Robot-API BeamsColor

    09-25-2012 07:29 AM in reply to: medtayeb

     

    Hi

     

    I tried that but no selection appears on  view    ( IRobotView2 MyStrView )

     

    IRobotSelection MyBarSelected = MyStrView.Selection.Get(IRobotObjectType.I_OT_BAR);

                 

                           

    for (num_bar = 1; num_bar <= MyBarSelected.Count; num_bar++)

                    {

                     

                        MyBarSelected.Get(num_bar);

    ........

    }

     

    Many thanks for help.

     

     

     

    Please use plain text.
    Product Support
    Posts: 2,507
    Registered: ‎04-26-2010

    Re: Robot-API BeamsColor

    10-11-2012 12:53 AM in reply to: medtayeb

    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.