Previous Next        Current Page: NeXtMidas Training / Option Trees / Command Dictionary / Using UPDATE
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
   + Overview   
   + Using an Option Tree   
   + Lab 1   
   + Creating an Option Tree   
   - Command Dictionary   
      - The Dictionary   
      - Dictionary Entries   
      - Using UPDATE   
   + Building an Option Tree   
   + Lab 2   
Macros - Part 1 (Basics)   
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   


  • The UPDATE command:
    • The UPDATE command provides an interactive way to add or modify entries in the command dictionary.
    • The UPDATE command handles the details in formatting the entries and inserting them in the correct order.
    • In the example below you will notice that arguments were entered for each line. For instance, "3" was entered for Number of arguments [0]. You have the option to not enter an argument and have it set to the default value. For instance, if no argument was entered for Number of arguments [0] then the default value would have been set to 0
    • Example:
      nM> update mycommand
      Option tree (USER, SITE, UCL, etc): [] -> train
      MYCOMMAND Abbreviation: [MYCOMMAND] -> myc
      Support [M] -> M
      Number of arguments [0] -> 3
      Default 1 [] -> FOO=3
      Default 2 [] -> BAR=
      Default 3 [] -> BAZ=
      nM>
      Added the following entry to the command dictionary for the TRAIN option tree:
      MYC*OMMAND    M,3    ,FOO=3,BAR=,BAZ=,
    • Older versions of NeXtMidas had upredictable behavior if the command name was not specified correctly on the command line. This was corrected in NeXtMidas 2.3.0.
    • If you choose not to use the UPDATE command and manually edit the command dictionary you will need to use the PATH command to reload the appropriate command dictionary.
      • This is done automatically when you use UPDATE.
      • Hint: Update is easier.
Don't Make This Mistake:
Many people make mistakes when they edit the command dictionary by hand (there are lots of special rules that must be followed when updating the dictionary by hand). This can be easily avoided by using the UPDATE command.
Don't Make This Mistake:
When using the UPDATE command, make sure to include the = after specifying each parameter name. Example: STR1=, instead of STR1. Failure to include the = sign will result in the parameter not being recognized by NeXtMidas.

back