Current Page:
NeXtMidas User's Guide
![]() ![]() ![]() |
|
Creating a New MacroCreating a macro in NeXtMidas is easy! Here is the complete list of skills required for creating a simple NeXtMidas macro:
A macro enables you to write a sequence of commands once, then run them over and over again. In this tutorial, you learn to write, test, debug and install a simple macro. By following the basic guidelines, you can develop your own macros. Basic Macro ContentsTo write a macro, open a new text file in a text editor. In
this example the macro is titled Once the file is open, type the first line of the macro
which is always (The line numbers of the following macros are for clarification purposes only; they do not actually appear as part of the macro.) 1: startmacro 2: 3: endmacro Now, between 1: startmacro 2: say "Hello World!" 3: 4: endmacro Running a User MacroTo test a user macro, type a percent-sign followed by the macro
name at the NeXtMidas prompt and press nM> %mymacro If NeXtMidas prints an error message such as Once this simple macro works, you can write a more useful macro: Macro Example: triangle.mm. These subsections discuss debugging macros and adding macros to an option tree:
|
|