A basic command-driven scripting method used for simple command sequencing and quick batch operations.
To help me tailor any specific automation scripts or workflows for you, could you tell me:
Boom. A column appears. But that’s just the starting point.
: Save your commands in a text file with a .pml or .mac extension. aveva e3d macros
: Automating the creation of repetitive structures like tanks, holes, or gratings.
When creating primitives, use relative commands (like BY Y 2000 or CONNECT ) rather than hardcoded global coordinates. This ensures the macro works cleanly anywhere in your 3D world.
Automation requires decision-making capabilities. PML provides standard if-then-else blocks and do loops. A basic command-driven scripting method used for simple
Create a new text file and save it as create_pump_zone.mac . Copy and paste the following basic PML1 script:
Z:\E3D_Project\MACROS\ ├── Equipment\ │ ├── columns.mac │ └── pumps.mac ├── Structures\ │ ├── handrail.mac │ └── ladder.mac └── Utilities\ ├── reset_views.mac └── attribute_check.mac
One of the most valuable capabilities of PML is its ability to interact with external data. This is often achieved by: But that’s just the starting point
Learn macros first. They are the gateway to mastering E3D automation.
From generating instant MTO reports to creating complex standard equipment models in seconds, the potential for automation in E3D is vast. While PML provides the foundational, easy-to-learn language for this, understanding how to integrate it with advanced .NET add-ins opens a world of possibilities for enterprise-grade automation.
Hard-coded values aren't very useful. You want one macro to do many things. Use ARG values (passed from the command line) or PROMPT for user input.