Previous Next        Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Messages in a Macro / Sending Messages
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
   + Macro Basics   
   + Loops and Control Structures   
   + Procedures and Subroutines   
   + Pipes in a Macro   
   - Messages in a Macro   
      - Message Queue   
      - Message Structure   
      - Sending Messages   
      - Receiving Messages   
      - Processing Messages   
      - Lab 1 - Macro Messages   
         - Instructions   
         - Solution   
      - Lab 2 - Macro Messages   
         - Instructions   
         - Solution   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Sending Messages (the MESSAGE command):
    • Messages can be sent from a macro using the MESSAGE command.
      • Typical usage:
        plot/id=plot1 ...
        ...
        message send ID="PLOT1" NAME="OPENFILE" DATA="world.prm"
      • See the MESSAGE explain file for details.
    • The messages sent or received by a command are listed in the explain file for that command.
      • Example:
        nM> explain plot messages
X-Midas Users Take Note:
Be careful when porting macros from X-Midas to NeXtMidas since the parameters for MESSAGE differ slightly. In general it is best to use the TAG= in NeXtMidas.