It is also possible to define an ACT-based property as an output parameter.
The process for making a property available as a parameter is the same as for any
input parameter. You add the attribute isparameter
and set it
to true. A check box allowing parameterization of the property then becomes
available in the Details view for the property. To specify that
the property is to be an output parameter, you must also add the attribute
readonly
to the XML file and set it to true.
For example, the following code segment creates a property named
MyOutPutProperty
. As in the previous example, the
property is a pressure and its value is a float. However, because it has the
attribute readonly
set to true, this property can be
parametrized only as an output parameter.
<property name="MyOutPutProperty" caption="MyOutPutProperty" control="float" unit="Pressure" readonly="true" isparameter="true"/>
Note: Other attributes such as default
and
isload
can be added as well. When adding a default
value for a quantity, you must define both the value and the unit, placing the
unit in brackets like this: default="12 [C]"
.
Again, in Mechanical, the check box provided by the ACT attribute to parameterize the property must be selected for the corresponding output to be automatically generated in the Outline and Table views for the Parameter Set bar.
In addition, the minimum and maximum values of an ACT result object are available to become output parameters by default. This capability is not managed by the ACT extension but takes advantage of the Mechanical environment.