Previous Next        Current Page: NeXtMidas Training / Option Trees / Using an Option Tree / Using HOMEPATH
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   
      - The Path   
         - Using PATH   
         - Using OPTION   
      - Linking to Option Trees   
      - Navigating Using NMD   
      - Using HOMEPATH   
   + Lab 1   
   + Creating an Option Tree   
   + Command Dictionary   
   + 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 HOMEPATH Command:
    • The HOMEPATH command (usually shortened to HOME) sets the homepath used to run home macros (also called percent macros or user macros).
    • Just typing HOMEPATH will list the current homepath.
      nM> home
      HomePath = /home/burdell/
    • The HOMEPATH command has two forms used to set the homepath:
      • The first form takes in a full path to use for the home directory.
        nM> home /home/burdell/junk
        nM> home
        HomePath = /home/burdell/junk/
      • The second form works just like NMD and takes in the area of an option tree and the name of the option tree.
        nM> home test sys
        nM> home
        HomePath = /home/burdell/nxm230/nxm/sys/test/
    • new Since NeXtMidas 3.1.0, users can use a special switch with the HOMEPATH command to specify that they wish the homepath to be set to the Current Working Directory (CWD) and change as the CWD changes.
      nM> nmd test sys    ! Sets CWD to $NMROOT/nxm/sys/test
      nM> home/cwd        ! Sets HOMEPATH to $NMROOT/nxm/sys/test
      nM> nmd mcr sys     ! Sets CWD and HOMEPATH to $NMROOT/nxm/sys/mcr
      
X-Midas Users Take Note:
Stable X-Midas releases before 4.6.0 do not support the setting of the home path using the NMD-like syntax.

back