• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Adams
  3. Force graphical update after running Adams Python script...

Following Cadence Design Systems’ acquisition of the Design & Engineering (D&E) business, the D&E Community Forum on the Nexus Community Center has been migrated in the Cadence Physical System Simulation Community. For more details and if you have any questions, please refer to the FAQ.

Stats

  • State Not Answered
  • Replies 5
  • Subscribers 3
  • Views 16
  • Members are here 0
More Content

Force graphical update after running Adams Python script?

michael.w.clarke1
michael.w.clarke1 over 1 year ago

I'm using the adams python API to build a large assembly of discretized parts (ie a rope or chain).  All of the markers in the assembly are parameterized using LOC_RELATIVE_TO and ORI_RELATIVE_TO.  Immediately after running the python script a bunch of random markers are shown as being oriented with global coordinates instead of adhering to their ORI_RELATIVE_TO expression.  If I manually modify the markers individually (painful as there are hundreds of markers) or run a simulation they will suddenly correct themselves to show the proper orientation specified by ORI_RELATIVE_TO for the rest of the Aview session.  Is there a command that I can run to force Adams to redraw everything after running the python script?

  • Sign in to reply
  • Cancel
  • Alexis Del Rio
    0 Alexis Del Rio over 1 year ago

    what happens if you export a cmd file? how does the location appears?

    thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michael.w.clarke1
    0 michael.w.clarke1 over 1 year ago in reply to Alexis Del Rio

    If I export to cmd and re-import the cmd the markers are all aligned correctly. I see the ORI_RELATIVE_TO expressions as expected in the cmd language.  It appears that the python function isn't triggering some sort of update function in the graphics window.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Alexis Del Rio
    0 Alexis Del Rio over 1 year ago in reply to michael.w.clarke1

    So, if you review the cmd file in Notepad it's written correctly, that's good.

    What happens if:

    1. Close Information & Marker Modify

    2. Click the Groups tab

    3. Click Browse again

    4. then review Marker Modify/information, does it get updated?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michael.w.clarke1
    0 michael.w.clarke1 over 1 year ago in reply to Alexis Del Rio

    It seems like right click/modify on a marker (and closing the modify dialog box without changing anything, not even hitting ok or apply etc) will force the orientation of that marker to correct itself (and every other marker on that part too) in the graphics window. Doing this manually isn't feasible as the python script creates dozens of parts.

    Switching between groups/browse doesn't seem to effect anything, the right click/modify thing works with or without doing that.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • MK202610123211
    0 MK202610123211 over 1 year ago

    I use

    model display model model = .xxx

    for such purposes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information