The ’given objects’ of a construction are those the ’target object’ will be constructed from later. If you want to use the macro, objects of the same kind as the given objects in the macro must be selected. Ordering is important.
For examples see the section 1.4.9 about macros and the section 12.1.
If you want your macro to be recursive, set the objects to recurse on with this function.
The object-type and order must match the type and order of the given objects. It is possible to define multiple recursions.
Now you can construct a ’Midpoint-triangle’ for the resulting triangle again.
If you want to define this construction as a macro it would be logical for the vertices of the first triangle to function as the given points. Consequently, you will have to mark them as given.
You could start again with the three midpoints. This is your recursion: Mark the three midpoints and choose ’Macro - recurse on’.
Now you should save the macro, for instance as ’MacroMidpointTriangle.geosave’. Then start a new construction, construct three points, select them and choose ’Macro - play’. Select the file you just saved. Now a dialogue appears that lets you enter the number of recursions. Five would be a good choice.
The result should look like this:
Elements marked as final will only be drawn at the last recursion. Example:
It is obvious that drawing the segments on each recursion is a bad idea. Furthermore the segments are too thick and the points should be invisible.
Mark the four segments as final.
Here you can enter a description for the macro and comments for each step of the construction, see the section 12.5 on entering comments.
Plays a macro. If the objects selected in the current construction match the given objects in the macro exactly it will be played at once. If not, the user will be prompted to select the necessary objects one after another.
If not, the user is prompted to select the necessary objects one after another (similar to the commands in the ”New Object”-Menu). If the author of the macro provided helptexts with the macro they will be displayed. If not, only the types of objects that are required for the macro will be shown.
In case a construction is chosen that is not a real macro it will simply be pasted into the current construction (name-clashes will be corrected).
A dialogue for selecting a folder will appear. The selected folder will be used as your macro-folder. All constructions saved in that folder or subfolders will appear as a menu-entry in the macro-menu. Subfolders will show as submenus. This enables you to sort your macros by theme. The macro-folder contained in the program-folder demonstrates this.
This setting is permanent, so you won´t have to select a macro-directory each time you start the program. In the event that you save additional macros to your macro-folder, you will have to select ’Macro - Refresh macro directory’ or to restart the program for this to have effect on the macro-menu.
For Mac- and Linux-users it is necessary to select ”Extras - Settings - Use as preset” to make the selected macro-directory permanent.