article

Paul Toone avatar image
0 Likes"
Paul Toone posted

User Events   

User Events are accessed from the Toolbox. (View menu > Toolbox > Add > Modeling Logic > User Event).

User Events are FlexScript functions that execute at set times during the model's run, but are not connected with any specific, visible object. They are created and stored in model's /Tools/userevents folder. A model can have any number of user events.

- Adds a new blank User Event.

- Removes the selected User Event.

- Reorder's User Events Up or Down in the list.

User Events List - Displays all of the Model's User Events. Changing from one User Event to another will apply any changes made to the previous User Event before displaying the newly selected User Event.


Name - This is the name of the user event. This is purely for the modeler's convenience and has no affect on the model. It is helpful to be descriptive of what the user event does.

Execute event on reset only - If this box is checked the event will only be executed when the reset button is pressed.

First Event Time - This is the time in model units that the User Event will occur.

Repeat Event - If this box is checked, as soon as the user event executes, it begins counting towards the next execution time as defined by the Repeat Event Time.

Repeat Event Time - If the Repeat Event box is checked, this field will be enabled. Once the first User Event executes, the User Event will repeat in regular intervals defined by this time (in model units).

Event Code - This is where the FlexScript code for the event is written. Any valid FlexScript statements can be used in this picklist.


- Adds the User Event to a User Library as either a Draggable Icon or an Auto-Install Component.

Apply - Saves all changes to the User Event.

OK - Saves all changes to the User Event and closes the window.

Cancel - Cancels any changes made to the User Event and closes the window.



flexsim users manualusers manual
5 |100000

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

Article

Contributors

paul.t contributed to this article

Navigation

FlexSim 2016.1