Create and Run Drawing Batch Macros
- Last UpdatedJan 12, 2026
- 1 minute read
When you create a batch macro for the automatic production of hanger and support drawings, all formatting options (as defined by the current default settings) and all elements to be drawn (as defined by the current restraint list) are stored as variables in the macro.
-
To save the current drawing definitions to a macro file, either select File > Batch > Save Macro to save them to the file shown by the Batch Dir/Macro setting, or select File > Batch > Save Macro As... to save them to a file whose name you will specify using the resulting file browser.
When you save the drawing creation commands to a batch macro file, the command lines are checked for validity of the default settings and other batch data. Any errors encountered during the macro creation process are recorded in a form.
-
To view this information after saving the macro, select File > Batch > Display Verify Errors.
A batch macro file consists of the commands necessary to create a fully annotated and dimensioned drawing in Draft, using the settings of variables to define the drawing parameters. Each macro ends with a CALLSUP START command which initiates the drawing production macros. You submit each macro for batch execution in Draft in order to create the corresponding Hangers and Supports drawings.
-
If you have no standard method for submitting PDMS batch jobs for execution, bring up the Command Input & Output (Display > Command Window) form, and then execute the batch macro.