Components reset positions on reset of simulation

Hello,

We build our layouts via python scripts, based on information from an xml file. This contains the type of component that need to be loaded into Visual Components, their position and their orientation. This works good, every components is placed on the right position.

However, it seems that their position is not fixed until we press the play button of the simulation. When we press the reset button before anything else, all components get set back to their original positions (which is often (0,0,0)). The same happens when we save the layout before pressing play once (probably the simulation gets reset before saving).

How do we make sure that the positions of components don’t reset when we press the reset button before the play button?

1 Like

Maybe with that Save State :thinking:

After loading position from XML.

for child in app.Components:
  child.saveState()
2 Likes

This solution works. Thank you very much!

This helped me too, thanks a lot!