Previous Next        Current Page: NeXtMidas User's Guide / Macros / Creating a New Macro / Macro Installation
back
- FAQs   
- Release Information   
- Getting Help   
+ Basic Concepts   
+ Result Parameters   
- JSON Support   
- XML Support   
+ Files   
+ System Operation   
- Macros   
   - Macro Structure and Execution   
   - Messages in Macros   
   - Piping in Macros   
   - Creating a New Macro   
      - Macro Editing   
      - Macro Installation   
      - Macro Example   
   - User Macros   
+ Java WebStart   
+ Graphics   
+ X-Midas Interoperability   
+ Third-Party Compatibility   
+ Build/Installation Options and Customization   
- Running NeXtMidas Independently   
- WebVNC to deploy NeXtMidas as a Web App   
+ Security and Secure Communication   
- Timelines - Keywords, Updating, Known Issues   
+ Installing and Using Docker   
+ Glossary   


Macro Installation

Two steps are required to add a macro to an existing option tree:

  1. Copy the macro file into the mcr directory of the given option tree. For example, to add mymacro.mm to the UCL option tree, copy it to the $NMROOT/nxm/ucl/mcr/ directory.
  2. Add an entry for the macro in the commands.cnf file for the option tree. The simplest way is to use the UPDATE command (see HELP UPDATE for details).

Once you add a macro to an option tree, it can be edited in place without running UPDATE again (unless the input parameters change).

Since NeXtMidas uses Just-In-Time compilation for all macros, you never need to compile a macro. In most cases, it is unnecessary to restart NeXtMidas after a macro is edited because it recompiles each time a user calls it from the command line.


back