Loop with trace macro

Parent Previous Next

This macro is created via icon of the displays expandable toolbar (fourth from the bottom).


This macro purpose is to recalculate and display the figure for all values of a variable, from mini to maxi value, with step increment. At the end of each loop, a list of objects will draw a trace on the figure.

This kind of macro is very useful to simulation random experiences.

You may specify a macro to be executed before all the loops to run. For example, this macro will initialize counters.

You may also define a macro to be executed at the end of each loop. For example, this macro will update counters.


When a loop with animation macro is executed :


The variable is given it's mini value.

The macro to be executed before the loops is executed.

The figure is recalculated and updated, the objects of the chosen list leaving a trace on the figure.

The macro to be executed at the end of each loop is executed.

The step of the variable is added to the current value.

And so on while current value of the variable is inferior to it's max value.


To be noticed : The macro to be executed before the loops and at the end of each loop will often be macros executing a sequence of macros.