Previous Next        Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Messages in a Macro / Receiving Messages
back
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   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Receiving Messages (the /MSGID= switch):
    • By default most primitives do not forward their messages on to the macro.
    • Most macros that send messages use the /MSGID= switch to enable messages.
      • Using /MSGID=MAIN will send the messages to the macro.
      • It is common to get messages from multiple primitives and send them all to the macro.
      • Messages sent to the macro go to the processMessage procedure.
        (This is covered on the next page.)
    • Some of the commands that use the /MSGID= switch:
      PLOT     LIST     LIST2     SOURCEDG
X-Midas Users Take Note:
The /MSGID=MAIN in NeXtMidas corresponds to /MSGID=1 in X-Midas. This is because NeXtMidas allows IDs to be names, not just numbers.

back