Installing Macro Definition Files

From Vital Soft Wiki
Jump to: navigation, search

Installing Macro Definition Files

The AskPlus macro file is built by running the load_macros script. When the script is executed the compiled macro file is built in the current directory. The compiled macro file is created from the following definition files:

  • /ASKPLUS/visimage/macrodef
  • /ASKPLUS/visimage/usermdef
  • ./usermdef
  • ./vsmacdef
  • Installing a new macrodef file:
1. Download the latest macrodef file from the website.
  • Use right-click download to force a download of the file.
Use this file with AskPlus E.8.3.2 (or higher) and Spectrum Release 2015.2.0: MacroDef
Use this file with AskPlus E.8.3.1 (or earlier) and Spectrum Release 2015.2.0: MacroDef
2. Login as the askplus user.
3. Transfer the downloaded file (ASCII) to /ASKPLUS/visimage:
4. Backup the current macro and macro definition files:
cd /ASKPLUS/visimage
cp macro macro.save.cymd
cp macrodef macrodef.save.cymd
# Where cymd is today's date.
5. Rebuild (compile) the macro file using the new definition file as follows:
cd /ASKPLUS/visimage
# Note the file you uploaded may have a different name than macrodef.samp.
chmod 644 macrodef.samp  << This step is VERY important for Vital Signs users! >>
cp macrodef.samp macrodef
/ASKPLUS/load_macros
6. Verify that the macro file permissions are correct:
ll macro
The file must be writeable by all users, at least 666.