Is there a way to tag a component as “Dynamic”?
The reason for my question is that I sometimes use app.CloneComponent() during the simulation but those components are not always deleted after I hit the reset button. So if I could tag the component as dynamic it would be deleted after I reset the simulation.
Every vcComponent has a CreationTime property. Try this code with a feeder and conveyor template. Static components should have a creation time of zero.
from vcScript import *
app = getApplication()
for c in app.Components:
app.OnDynamicComponent = tag
With that, there is the option to stamp every dynamic component with a property that identifies it as dynamic.
Thanks, this is very usefull!