Previous Next        Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Macro Basics / Lab 2 - Macro Basics / Instructions
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   
      - What is a Macro?   
      - Types of Macros   
      - Local vs Global Results   
      - Macro Structure   
      - Lab 1 - Macro Basics   
         - Instructions   
         - Solution   
      - Lab 2 - Macro Basics   
         - Instructions   
         - Solution   
   + Loops and Control Structures   
   + Procedures and Subroutines   
   + Pipes in a Macro   
   + Messages in a Macro   
+ 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   


  • Lab 2:
    • For this lab you will need to create a new option tree called TRAIN and add the macro you created in Lab 1 to that option tree.
      • If you have forgotten how to create an option tree, please refer back to the module on Option Trees.
      • You can just copy the file you created in Lab 1 to the mcr directory and then use UPDATE to add it to the command dictionary (you do not need to provide default values for the macro).
    • When you are done you should be able to do this:
      nM> mcrlab1 FEET=5 INCHES=6 NAME="Lee"
      INFO: Lee is 167cm tall [MCRLAB1]
      

back