Arbortext IsoDraw > Macro Language Reference > 3D and User Interaction Commands > Further Macro Commands > Batch
  
Batch
Applies to Arbortext IsoDraw 7.0 F000 and later:
The BATCH command reads a text file line by line and calls a macro with the line’s content individually.
BATCHfilemacro
file
(string) The path and file name of the text file to read.
macro
(optional; string) The name of the macro that will process the text file content. If this parameter is omitted, the Select macro dialog box opens for manual selection. The BATCH command calls the specified macro for each line of the text file. Each line’s string content is passed to the macro as a single parameter value. BATCH only works with macros that expect exactly one parameter. Macros of any other kind will cause BATCH to display an error message.
SUBMACRO Delete_Pen( string sPenName )
DELETE PEN sPenName "$ISO_NOPEN"
END SUBMACRO

MACRO Remove_Invalid_Pens
BATCH "C:\InvalidPens.txt" "Delete_Pen"
END MACRO