Arbortext IsoDraw > Macro Language Reference > Object Data Types > Application Object - User Interface Preferences > app.currentMacro
  
app.currentMacro
Applies to Arbortext IsoDraw 7.0 F000 and later:
Returns descriptive and status information about the macro that is currently running, such as its name and how many variables or parameters it contains. This property is read-only.
app.currentMacro.name
Returns the current macro’s name as string.
DEFINE mName AS string
mName = app.currentMacro.name
MESSAGE "The macro '" + mName + "' is running."
app.currentMacro.countVars
Returns the number of variables defined in the macro as integer.
Define x AS float
Define y AS float
DEFINE vCnt AS integer
vCnt = app.currentMacro.countVars
MESSAGE "The variable count is " + vCnt
app.currentMacro.countParams
Returns the number of parameters as integer.
DEFINE pCnt AS integer
pCnt = app.currentMacro.countParams
MESSAGE "The parameter count is: " + pCnt
app.currentMacro.unicodeFlag
Returns the current Unicode flag value as integer. The flag values are:
0
8-bit / 0xFFFE
0xFEFF
Unicode file
DEFINE uFlag AS integer
uFlag = app.currentMacro.unicodeFlag
MESSAGE "The current unicode flag is: " + uflag
app.currentMacro.status
Returns a status value for the currently running macro as integer. Status values are:
0
Temporarily stopped
1
In menu
2
SubMacro
3
Write protected
4
Internal
MESSAGE "The current macro status is: " + app.currentMacro.status
app.currentMacro.callDepth
Returns the call stack depth of the current macro as integer.
MESSAGE app.currentMacro.callDepth
app.currentMacro.activeLine
Returns the text content of the active macro line as string.
MESSAGE app.currentMacro.activeLine