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:

treenode v;
forobjectlayerunder(model()){
    v=getvarnode(a,"resettrigger");
    if (v)
        destroyobject(v);
}
· 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.

Joey avatar image Joey commented ·

hi, Jason, getvarnode(a,"resettrigger") return null for all object tpye, so i can not disable the reset trigger with this method

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Joey commented ·
If it's null then there are no triggers to disable.
30000 processors with no reset triggers takes the model 5 seconds to reset for me.
0 Likes 0 ·
Joey avatar image Joey Jason Lightfoot ♦♦ commented ·

reset-event.jpg

the model will automatically create the reset event for every object,. To prevent the creation, how can I do

0 Likes 0 ·
reset-event.jpg (160.1 KiB)
Show more comments