Attribute class

This class provides access to the input provided for each attribute in the attribute group. The attributes are defined in the Attributes section of the XML definition file.

Table 102:  Members

Name Type Description
AttributeNameint The name of this Attribute
ValueAsIntintReturns the value entered as an integer; double values will be truncated. Accepted input is determined by the XML definition file.
ValueAsDoubledoubleReturns the value entered as a double. Accepted input is determined by the XML definition file.
ValueAsStringstringReturns the value entered as text; if the value is numerical, it will automatically be converted to text. Accepted input is determined by the XML definition file.
SelectedElementCountintReturns the number of elements included in the selected geometry
SelectedElements() DAElement[] classReturns an array of DAElements included in the selected geometry
SelectedNodeCountintReturns the number of nodes included in the selected geometry
SelectedNodes() DANode[] classReturns an array of DANodes included in the selected geometry


Note:  The functions SelectedNodes and SelectedElements will return None if no geometry is specified. These functions, plus the SelectedNodeCount and SelectedElementCount are only valid if the <Application> field in the attributes section of the XML definition file is used to enable geometry selection.



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