Library | Module

Class pfcUnitSystem



Description

This class describes a particular unit system in the model.
Direct Parent Classes:
pfcChild



Property Summary

/* readonly */ booleanIsStandard
Specifies whether the unit system is system-defined (value true) or user-defined (value false).
stringName
Specifies the name of the unit system
/* readonly */ pfcUnitSystemTypeType
Specifies the type of the unit system.



Method Summary

voidDelete ()
Delete the unit system
/* optional */ pfcUnitGetUnit (pfcUnitType Type)
Retrieves the unit used by the unit system for a particular type.



Property Detail


/* readonly */ booleanIsStandard

Specifies whether the unit system is system-defined (value true) or user-defined (value false).




stringName

Specifies the name of the unit system

Exceptions thrown (but not limited to):

pfcXToolkitCantModify - The unit system cannot be modified because if is standard, or new_name already exists, or the model cannot be modified.






/* readonly */ pfcUnitSystemTypeType

Specifies the type of the unit system.





Method Detail


voidDelete ()

Delete the unit system

Exceptions thrown (but not limited to):

pfcXToolkitCantModify - The unit system cannot be modified because if is standard, or is the principal system, or the model cannot be modified.





/* optional */ pfcUnitGetUnit (pfcUnitType Type)

Retrieves the unit used by the unit system for a particular type.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - system does not contain a unit of the requested type.


Parameters:
Type
The type of unit.
Returns:
The unit.