Arbortext IsoDraw > Macro Language Reference > Introduction > Language Basics > Macro
  
Macro
A single macro file may contain several macros. This is useful for grouping different macros of the same topic.
* 
Macros cannot be nested.
MACROmacronamePROTECTEDNOT_IN_MENUEND MACRO
PROTECTED
Optional parameter to protect the macro from being deleted using the Delete Macro dialog or being overwritten by a recording.
NOT_IN_MENU
Optional keyword that hides macro from the menu Macros. The macro can still be started through the Run Macro dialog.
MACRO Do Something
MESSAGE "I’m doing something"
END MACRO

##############################################

MACRO littleHelper NOT_IN_MENU
#this macro does not appear in the
#menu "macros"
END MACRO

##############################################

MACRO necessary PROTECTED
#this macro can not be deleted using
#the menu command "Delete macro"
END MACRO

##############################################

MACRO bothOptions PROTECTED NOT_IN_MENU
#you can use both parameters in one macro
END MACRO