question

anon-user avatar image
1 Like"
anon-user asked anon-user commented

When does "On Draw" fire?

About Triggers,
When does "On Draw" fires ?
Also, What is the difference between "On Draw", "On Pre Draw" and "On State Change"?


I read the FlexSim manual and read "Introduction to Events, States, and Triggers".
However, I couldn't get any information about "On Draw".
https://docs.flexsim.com/en/19.0/ModelLogic/EventsStatesTriggers/KeyConceptsEvents/



FlexSim 19.0.9
triggersdrawon drawon state changeon pre draw
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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered anon-user commented

From the User Manual

The on draw event is fired each time the 3D view is repainted. This happens at different times depending on run speed and refresh rates. In order to ensure model repeatability, code used in the on draw trigger should not use the stochastics commands (distributions) that use FlexSim's random number generator.

See On Draw (the last event in the list) here: https://docs.flexsim.com/en/20.1/Reference/3DObjects/FixedResources/FixedResourcesConcepts/#events

anonymous user

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

anon-user avatar image anon-user commented ·

Thank you! This is exactly what I wanted to know!

0 Likes 0 ·