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

    Autodesk Robot Structural Analysis

    Reply
    Product Support
    Posts: 2,500
    Registered: ‎04-26-2010

    Re: Display bar length graphically

    12-13-2011 04:01 AM in reply to: sorgjee

    sorgjee wrote:

    Thanks, the code for the mapping works for me, except the symbol size is refusing to change frmo anyting other than 3. ANy idea what is causing this?

     

    (Keep in mind that this approach may not display member lengths on all members - take a look at Romanich screen shot)

     

    Do you refresh after?

     

    symbolsize1.jpg

     

    Is there a way of setting the scale colours to black through the API?

     

    I am afradi not possible.

     

    Trying to make the print as neat as possible.

     

    Try this code :

     

    viewRobot.ParamsBarMap.CurrentResult = I_VBMRT_DESIGN_MEMBER_LENGTH
    viewRobot.ParamsBarMap.Descriptions = I_VDDT_TEXT
    viewRobot.ParamsBarMap.MapThicknessCoeff = 1
    viewRobot.ParamsDisplay.SymbolSize = 5

    viewRobot.ParamsDisplay.Set I_VDA_VIEWOGL_BLACK_EDGES, True
    RobApp.Project.ViewMngr.Refresh

     

    blackedges.jpg

     



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Active Contributor
    sorgjee
    Posts: 49
    Registered: ‎12-11-2011

    Re: Display bar length graphically

    12-13-2011 08:58 AM in reply to: RG_Adsk

    Hi Rafal,

     

    Thanks _BLACK_EDGES works a treat.

     

    No idea about why the SymbolSize is not working . Was running smoothly last night. Will try different computer and see if it makes any difference.

     

    One more question though, after setting BarMap, how do I revert to a 'normal' view. Using ParamsBarMap.CurrentResult - I_VBMRT_NOTHING simply makes the bars disappear completely.

     

    Regards,

    Even

     

    Please use plain text.
    Active Contributor
    sorgjee
    Posts: 49
    Registered: ‎12-11-2011

    Re: Display bar length graphically

    12-13-2011 11:26 PM in reply to: sorgjee

    I tried SymbolSize on a different computer (with RSA2012), and it worked fine. Still no luck on this computer, which has RSA2011 installed. The reference manual indicate that this function was introduced fairly early so should work. Any idea?

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

    Re: Display bar length graphically

    12-14-2011 01:21 AM in reply to: sorgjee

    sorgjee wrote:

    I tried SymbolSize on a different computer (with RSA2012), and it worked fine. Still no luck on this computer, which has RSA2011 installed. The reference manual indicate that this function was introduced fairly early so should work. Any idea?



    You are right. On 2011 the change of this parameter makes no difference on display.

    Works fine on 2012.



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

    Re: Display bar length graphically

    12-14-2011 03:14 AM in reply to: sorgjee

    One more question though, after setting BarMap, how do I revert to a 'normal' view. Using ParamsBarMap.CurrentResult - I_VBMRT_NOTHING simply makes the bars disappear completely.

     

    This should work:

     

    viewRobot.ParamsBarMap.Descriptions = I_VDDT_NONE
    viewRobot.ParamsBarMap.CurrentResult = -1
    viewRobot.ParamsDisplay.Set I_VDA_VIEWOGL_BLACK_EDGES, False

    RobApp.Project.ViewMngr.Refresh

     

     



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.