Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Field Substitution Macros
The field substitution macros provide access to data in your model. In particular, they are used to access data fields from:
- Packages
- Classes
- Attributes
- Operations, and
- Parameters
Field substitution macros are named according to Camel casing. By convention, the macro is prefixed with an abbreviated form of the corresponding model element. For example, attribute-related macros begin with att, as in the %attName% macro, to access the name of the attribute in scope.
Macros that represent checkboxes return a value of T if the box is selected. Otherwise the value is empty.
This table lists a small number of project field substitution macros. See the Learn more section for tables listing groups of type-specific macros.
Project Macros
Macro Name |
Description |
---|---|
eaDateTime |
The current time with format: DD-MMM-YYYY HH:MM:SS AM/PM. |
eaGUID |
A unique GUID for this generation. |
eaVersion |
Program Version (located in the 'About Enterprise Architect' dialog by selecting 'Help | About EA'). |
Learn more
- Substitution Examples
- Attribute Field Substitution Macros
- Class Field Substitution Macros
- Code Generation Option Field Substitution Macros
- Connector Field Substitution Macros
- Constraint Field Substitution Macros
- Effort Field Substitution Macros
- File Field Substitution Macros
- File Import Field Substitution Macros
- Link Field Substitution Macros
- Linked File Field Substitution Macros
- Metric Field Substitution Macros
- Operation Field Substitution Macros
- Package Field Substitution Macros
- Parameter Field Substitution Macros
- Problem Field Substitution Macros
- Requirement Field Substitution Macros
- Resource Field Substitution Macros
- Risk Field Substitution Macros
- Scenario Field Substitution Macros
- Tagged Value Substitution Macros
- Template Parameter Substitution Macros
- Test Field Substitution Macros