Hi,
is it possible concurrently destroy/delete all the objects from the library currently in the model using a script?
Hi,
is it possible concurrently destroy/delete all the objects from the library currently in the model using a script?
for (int n=content(model());n>1;n--) { destroyobject(rank(model(),n)); }
Hi, thank you for the answer! The script work but doesn't delete the AGV path (all the object under AGVNetwork). There is a solution for this problem?
So you don't want to use "New Model" ? I can only assume you have some usercommands or process flows defined that you want to keep.
for (int n=content(model());n>1;n--) { treenode o=rank(model(),n); if (o.name=="AGVNetwork") while (content(o)) destroyobject(o.first); else destroyobject(o); }
I create all the objects through the process flow reading some values from tables. I want to create a loop where I create the warehouse, make the simulation, save the results, destroy the objects, modify the values and restart a new simulation (all in automatic). So i need to clear the model but i can't just open a new model. However everything works fine now. Thank you so much for your time!
13 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved