As the name already says the macros are programmed in C++ or more correct in an interpreter language very similar to C++ as not all parts of the C++ standard are supported. However it is most comfortable to use the build-in TextEditor as it contain an execute button for a simple execution of the macro. Own macros can be created in any text editor. With a correct naming of the sub-folder you define where in the menu the macros is displayed and to which window (layout, schematic, text editor) it appears. During program launch these directory-tree is scanned and added to the correspondent place in the menu.
Macros stored somewhere below the "macros"-directory (set up via the SetupDialog or by default in the layout installation-directory-tree) are inserted in the menu tree.
Macros can stored everywhere and can be executed by the ExecuteMacro feature. All macros in that folder and its sub folders will be added into the menu of the LayoutEditor.Ĭ++ macros are text-files and can be edited by with the EditMacro feature or any other text editor of your choice. Alternative you can store the macro file in a specially named folder. Stored macros can be executed via the ExecuteMacro function. After stopping the recording a TextEditor will be opened with the recorded macro. The recording can be started via StartMacroRecording and stopped via StopRecordedMacro. The operation are stored in a C/C++ style and can be edited with any text editor.
Like many office programs the LayoutEditor can record the operations you have done with the graphical user interface. The simplest way to use macros is macro recording.