hexagon logo

Force graphical update after running Adams Python script?

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?



fix typo
[edited by: michael.w.clarke1 at 2:56 PM (GMT -6) on Jan 14, 2025]
Parents Reply Children
  • 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.