Attributes Format

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:

PropertyValueMeaning
ObjIdenter an integerNumber identifying this attribute collection
TypeCAERepBaseSpecifies that the file is in ANSYS intermediate file format
Verenter an integerVersion of the Attributes object definition; this should be set to 2

The DAAttribute tag properties should be set as follows:

PropertyValueMeaning
ObjIdenter an integerUnique number identifying this DAAttribute, suggest starting at a fixed number (e.g. 100) to avoid conflict with other objects
TypeDAAttributeSignifies that the contents of the DAAttribute tag define an attribute
Verenter an integerVersion 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&lt;string>” (the latter if entering more than a single value in the tag contents).

PropertyValueMeaning
AttributeNameenter a stringDisplayed name of the attribute
AttributeType, with following values of type keyword allowed:IntInteger entry only
DoubleDouble precision entry only
TextText entry only
DropDownDrop down list selection
BrowseText based, but includes browse to a file button
NoneOnly Geometry Selection required, hides Value Cell
Application, with following values of selection keyword allowed:VerticesEnables Geometric selection of vertices only
LinesEnables Geometric selection of line bodies only
SurfacesEnables Geometric selection of surface bodies only
SolidsEnables Geometric selection of solid bodies only
GeometryEnables Geometric selection of lines, surfaces and solids
AllHides Geometry Selection cell, applies to the whole analysis
Validation, with following values of validation data allowed:Two comma separated numbers defining a min and maxFor Int or Double type keywords
Multiple comma separated strings defining the available entriesFor DropDown type keywords
A single number to define the maximum length of the stringFor 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-downFor DropDown type keywords
Default text stringFor the Text or Browse type keywords

DisplayUnits, with following values of display units keywords allowed:

(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 UnitsNo units are associated with the value (default if field is not defined)
StressValues are treated as stress
DistanceValues are treated as distance
StrainValues are treated as strain
ForceValues are treated as force
MomentValues are treated as moment, i.e. force x distance
RotationValues are treated as rotation
Angular AccelerationValues are treated as angular acceleration, i.e. rotation / time2
Angular VelocityValues are treated as angular velocity, i.e. rotation / time
VelocityValues are treated as velocity, i.e. distance / time
AccelerationValues are treated as acceleration, i.e. distance / time2
TemperatureValues are treated as temperature
PressureValues are treated as pressure, i.e. force / distance2
VoltageValues are treated as voltage
EnergyValues are treated as energy
VolumeValues are treated as volume, i.e. distance3
AreaValues are treated as area, i.e. distance2
CurrentValues are treated as current
Heat RateValues are treated as heat rate
Current DensityValues are treated as current density
PowerValues are treated as power
Heat GenerationValues are treated as heat generation
Magnetic FluxValues are treated as magnetic flux

Release 18.2 - © ANSYS, Inc. All rights reserved.