Within the Attributes section there are a number of options to define the name and type of attribute (for example, whether it’s a double, integer, drop-down list, text, etc.), and what it applies to (for example, can it be applied to selectable geometry or loadcases, and if geometry, is it vertex, lines, surfaces or solids). Depending upon the type, default values and validation ranges can be set. Attributes of int and double types can be parameterized.
<Attributes ObjId="2" Type="CAERepBase" Ver="2"></Attributes>
<DAAttribute ObjId="100" Type="DAAttribute" Ver="2">
<AttributeName PropType="string">attr name</name>
<AttributeType PropType="string">type keyword</type>
<Application PropType="string">selection keyword</application>
<Validation PropType="string">validation data</validation>
<Default PropType="string">default value</default>
<DisplayUnits PropType="string">display units keyword</DisplayUnits>
</DAAttribute>
</Attribute>
The attribute is defined in the Details panel with 4 rows:

If Scoping Method is set to Named Selection, the fourth row will contain a drop-down of all defined named selections that contain geometric entities of the type specified in the attribute definition.

The Attributes tag properties should be set as follows:
| Property | Value | Meaning |
|---|---|---|
| ObjId | enter an integer | Number identifying this attribute collection |
| Type | CAERepBase | Specifies that the file is in ANSYS intermediate file format |
| Ver | enter an integer | Version of the Attributes object definition; this should be set to 2 |
The DAAttribute tag properties should be set as follows:
| Property | Value | Meaning |
|---|---|---|
| ObjId | enter an integer | Unique number identifying this DAAttribute, suggest starting at a fixed number (e.g. 100) to avoid conflict with other objects |
| Type | DAAttribute | Signifies that the contents of the DAAttribute tag define an attribute |
| Ver | enter an integer | Version of the DAAtribute object definition; this should be set to 2 |
The following tags can be included as children of a DAAttribute tag (note that each tag must have a property PropType=”string” or PropType=”vector<string>” (the latter if entering more than a single value in the tag contents).
| Property | Value | Meaning |
|---|---|---|
| AttributeName | enter a string | Displayed name of the attribute |
AttributeType, with following values of
type keyword allowed: | Int | Integer entry only |
| Double | Double precision entry only | |
| Text | Text entry only | |
| DropDown | Drop down list selection | |
| Browse | Text based, but includes browse to a file button | |
| None | Only Geometry Selection required, hides Value Cell | |
Application, with following values of
selection keyword allowed: | Vertices | Enables Geometric selection of vertices only |
| Lines | Enables Geometric selection of line bodies only | |
| Surfaces | Enables Geometric selection of surface bodies only | |
| Solids | Enables Geometric selection of solid bodies only | |
| Geometry | Enables Geometric selection of lines, surfaces and solids | |
| All | Hides Geometry Selection cell, applies to the whole analysis | |
Validation, with following values of
validation data allowed: | Two comma separated numbers defining a min and max | For Int or Double type keywords |
| Multiple comma separated strings defining the available entries | For DropDown type keywords | |
| A single number to define the maximum length of the string | For the Text or Browse type keywords | |
Default, with following values of default
value allowed: | Default value in SI units; if default is within the valid range, when it’s created the object state will be checked, otherwise “?” | For Int or Double type keywords |
| String; used to set the default entry in the drop-down | For DropDown type keywords | |
| Default text string | For the Text or Browse type keywords | |
|
DisplayUnits, with following values of (Only used if version number of DAAttribute > 2 and AttributeType is Double) When a display unit is defined the value will automatically scale depending on the defined unit system for the Analysis and for the unit system used to view | No Units | No units are associated with the value (default if field is not defined) |
| Stress | Values are treated as stress | |
| Distance | Values are treated as distance | |
| Strain | Values are treated as strain | |
| Force | Values are treated as force | |
| Moment | Values are treated as moment, i.e. force x distance | |
| Rotation | Values are treated as rotation | |
| Angular Acceleration | Values are treated as angular acceleration, i.e. rotation / time2 | |
| Angular Velocity | Values are treated as angular velocity, i.e. rotation / time | |
| Velocity | Values are treated as velocity, i.e. distance / time | |
| Acceleration | Values are treated as acceleration, i.e. distance / time2 | |
| Temperature | Values are treated as temperature | |
| Pressure | Values are treated as pressure, i.e. force / distance2 | |
| Voltage | Values are treated as voltage | |
| Energy | Values are treated as energy | |
| Volume | Values are treated as volume, i.e. distance3 | |
| Area | Values are treated as area, i.e. distance2 | |
| Current | Values are treated as current | |
| Heat Rate | Values are treated as heat rate | |
| Current Density | Values are treated as current density | |
| Power | Values are treated as power | |
| Heat Generation | Values are treated as heat generation | |
| Magnetic Flux | Values are treated as magnetic flux |