question

Javier PL avatar image
0 Likes"
Javier PL asked Javier PL commented

Is it possible to set the same trigger for multiple objects at once?

I have multiple operators to which I would like to configure the same trigger "OnReset" (same Custom Code in my case). Is it possible to do it all at once like with labels or other common parameters?

Regards,


Javi

FlexSim 19.0.0
operatorstriggersparameters
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

Steven Hamoen avatar image
1 Like"
Steven Hamoen answered Javier PL commented

@Javier PL I would create a usercommand with the code you want to execute on Reset. That way you have only 1 place to change or debug code.

Then you put the code on 1 operator (and test it first of course ;-)) and select all the other operators, highlight the operator with the correct code and copy the resettrigger use the "Edit Selected Objects" panel. (you first have to create the resettrigger on the trigger tabpage, otherwise it won't show up in this list)


· 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.