question

Joey avatar image
0 Likes"
Joey asked Joey commented

how to disable the reset trigger?

my model has 30000 objects, 30000 reset events will be excuted, the excuting process need 10 seconds.

I want to disable the reset trigger of object to reduce the count of reset events, can you tell me how to do? thanks

FlexSim 18.2.3
reset trigger
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 Joey commented

You can try deleting the resettriggers if you don't need them to fire:

  1. treenode v;
  2. forobjectlayerunder(model()){
  3.     v=getvarnode(a,"resettrigger");
  4.     if (v)
  5.         destroyobject(v);
  6. }
· 11
5 |100000

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