Macros | Aveva E3d
When your macro starts looking like this:
--!macro Name: create_column.mac --!Author: J. Doe --!Date: 2024-05-20 --!Description: Creates a vertical column with top and bottom heads. --!Arguments: HEIGHT, DIAMETER, NAME --!Example: $M macros\create_column.mac 10000 2000 COL-001 Treat your .mac files like source code. Use Git to track who changed the macro that accidentally flipped all nozzles 180 degrees. 4. Create a Master Macro Menu Build a macro that presents a text menu:
Enter .
This article will dissect everything you need to know about AVEVA E3D macros, from basic recording to advanced parameterization and error handling. At its core, an E3D macro is a plain text file (usually with a .mac extension) containing a series of Design Data Language (DDL) or PML (Programmable Macro Language) commands.
-- Macro: create_cyl.mac -- Usage: $M create_cyl.mac 3000 8000 VESSEL-101 DEFINE ARG HEIGHT DEFINE ARG DIAMETER DEFINE ARG NAME aveva e3d macros
-- Highlight clashes in red CLASH HIGHLIGHT ALL COLOUR RED
This turns a 5-minute manual task into a 10-second macro. Macros are fantastic, but they have limits (no IF/ELSE logic natively unless you write PML inside the macro). When your macro starts looking like this: --
PML TEXT '1. Create Vessel' PML TEXT '2. Create Pipe Support' PML TEXT '3. Run Clash Report' DEFINE CHOICE PROMPT 'Enter choice: ' IF (CHOICE EQ 1) THEN $M create_vessel.mac ENDIF Scenario: An EPC firm needed to model 450 identical pipe racks across a refinery. Each rack had 20 handrails, 15 grating panels, and 8 vertical supports.