question

Simone F avatar image
0 Likes"
Simone F asked Simone F commented

Clear 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?

FlexSim 20.2.3
flexsim 20.2.3scriptdestroy object
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Simone F commented
  1. for (int n=content(model());n>1;n--) {
  2.     destroyobject(rank(model(),n));
  3. }
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.