Library | Module

Interface IpfcParameter



Description

This class defines a parameter object.
Direct Parent Classes:
IpfcBaseParameter, IpfcNamedModelItem



Property Summary

PropertyDescriptionas String [optional]
Parameter description string.
PropertyUnitsas IpfcUnit [readonly, optional]
Units assigned to the parameter.



Method Summary

SubDelete ()
Deletes a parameter.
FunctionGetDriverType () as IpfcParameterDriverType [optional]
Obtains the type of driver for a material parameter.
FunctionGetRestriction () as IpfcParameterRestriction [optional]
Identifies if a parameter's value is restricted to a certain range or enumerated.
FunctionGetScaledValue () as IpfcParamValue
Gets the parameter value in the units of the parameter, instead of the units of the owner model.
SubReorder (ParamBefore as IpfcParameter [optional])
Reorders the given parameter to come just after the indicated parameter.
SubSetScaledValue (value as IpfcParamValue, Units as IpfcUnit [optional])
Sets the parameter value in terms of the units provided, instead of using the units of the owner model.



Property Detail


PropertyDescriptionas String [optional]

Parameter description string.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The parameter's description is not set.






PropertyUnitsas IpfcUnit [readonly, optional]

Units assigned to the parameter.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The parameter is unitless.







Method Detail


SubDelete ()

Deletes a parameter.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The owner was not found.





FunctionGetDriverType () as IpfcParameterDriverType [optional]

Obtains the type of driver for a material parameter.
Returns:
The parameter driver type.



FunctionGetRestriction () as IpfcParameterRestriction [optional]

Identifies if a parameter's value is restricted to a certain range or enumerated.
Returns:
The parameter restriction.



FunctionGetScaledValue () as IpfcParamValue

Gets the parameter value in the units of the parameter, instead of the units of the owner model.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The owner was not found.


Returns:
The parameter scaled value.



SubReorder (ParamBefore as IpfcParameter [optional])

Reorders the given parameter to come just after the indicated parameter.

Exceptions thrown (but not limited to):

IpfcXToolkitBadContext - Parameter 'param_before' does not have the same owner as the parameter to be reordered.

IpfcXToolkitNoLicense - No license is available for this functionality.


Parameters:
ParamBefore
The parameter to be just before the reordered parameter. If NULL, the reordered parameter is moved to the first position in the parameter list.



SubSetScaledValue (value as IpfcParamValue, Units as IpfcUnit [optional])

Sets the parameter value in terms of the units provided, instead of using the units of the owner model.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The owner was not found.

IpfcXToolkitInvalidType - The unit type provided does not match the units of the parameter.


Parameters:
value
The value of the parameter to be set.
Units
The units in which the value is expressed. The value can be null.