question

shanice.c avatar image
0 Likes"
shanice.c asked shanice.c commented

Cannot see OnExit Trigger in properties

I would like to add a new trigger in OnExit. I have used onExit before in this queue, there are some settings inside and they also works, but the problem is that I cannot add new trigger if I cannot see it.

I'd like to ask if there's any way or use code to add a new trigger until I could update Flexsim. I have asked this question before in https://answers.flexsim.com/questions/108903/flexscript-exception-cannot-add-a-new-label.html
But due to the software is maintained by company, I couldn't update myself.

FlexSim 21.2.0
triggers
v1.mp4 (3.5 MiB)
· 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.

Arun Kr avatar image Arun Kr commented ·
Try checking the trigger after opening the default workspace. This option is available under the view button.
0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

@Fiona C I believe this is a bug that has been fixed in 21.2.3 or later. Update to the latest bug fix release and this will be fixed.

0 Likes 0 ·
shanice.c avatar image shanice.c Matthew Gillespie ♦♦ commented ·
@Matthew Gillespie Thank you, I will update.
0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered shanice.c commented

By your description the trigger exists but is simply not shown in the properties window?

Have you tried to close and reopen the properties window ("View" -> "Properties" in top bar)? The trigger may also appear in the "Quicker Properties" you can open with a double click on the object.

1636012837310.png

If that doesn't work you should still be able to add code directly to the "exittrigger" node in the objects variables tree. You could add the function you want to a different trigger and copy the relevant code from it.

1636013045036.png


1636013045036.png (15.8 KiB)
1636012837310.png (20.1 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.

shanice.c avatar image shanice.c commented ·

@Felix Möhlmann Thanks you for reply. I'll try to directly write in the "exittrigger" node. I have tried double clicking on the object and reopen the default workspace, these 2 methods couldn't help. This is also not first time that triggers cannot show in the properties window.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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