question

user12134598 avatar image
0 Likes"
user12134598 asked user12134598 commented

How to copy Object Triggers to all selected Objects

Is it possible to copy an object trigger (On Entry: do X) that I have on one queue to all selected Queues?

Alternatively, I could also use the process flow for event triggers (Event-triggered source). However, there, I am missing the On Draw option. Is there a custom code to trigger a token based an 'On Draw' of a Queue?

Thanks in advance!


FlexSim 24.0.1
customcodeevent triggercopy
· 1
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @user12134598, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

1 Like 1 ·

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered user12134598 commented

There are multiple ways to do this:

Select all objects you want to add the trigger to. Either by holding ctrl and clicking on each one or by holding down shift and drawing a box around the objects (or a combination of the two).

capture1.png

- If you change properties of one of the objects now, the changes will be copied to the other selected objects as well.

- You can open the "Edit Selected Objects" window. Then click on the object that already has the trigger set (so it has a yellow outline) and copy the trigger to the other objects.

capture2.png

- Or you open a property table in the toolbox and add a column for the respective trigger. Then copy/paste the trigger code in the table.

capture3.png

capture4.png


capture1.png (29.2 KiB)
capture2.png (19.0 KiB)
capture3.png (11.9 KiB)
capture4.png (5.6 KiB)
· 1
5 |100000

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

user12134598 avatar image user12134598 commented ·

thanks you!

0 Likes 0 ·