Library | File

Class wfcWUnit

# include <wfcModel.h>

class wfcWUnit
 : public virtual pfcUnit
{
    xaideclare(wfcWUnit)
    ...
};



Description

Provides the info about the Unit.
Manual References:
Overview of Creo Object TOOLKIT C++: Casting of Creo Object TOOLKIT C++ pfc Classes to wfc Classes



Method Summary

pfcUnitConversionFactor_ptrCalculateUnitConversion (pfcUnit_ptr Unit)
Calculates conversion factors from one ProUnititem to another; these can belong to the same model or two different models.
voidModifyByExpression (xrstring Path)
Modifies a derived unit.


Methods Inherited from Class pfcChild:

GetDBParent, GetOId


Methods Inherited from Class pfcUnit:

GetName, SetName, GetType, GetIsStandard, GetConversionFactor, GetReferenceUnit, GetExpression, Modify, Delete



Method Detail

voidModifyByExpression (xrstring Path)

Modifies a derived unit.

Exceptions thrown (but not limited to):

pfcXToolkitCantModify - The unit cannot be modified because it is referenced from the principal system of units or it is referenced from ref_unit.


Manual References:
Solid: Accessing Individual Units
Parameters:
Path
The unit expression.
Returns:



pfcUnitConversionFactor_ptrCalculateUnitConversion (pfcUnit_ptr Unit)

Calculates conversion factors from one ProUnititem to another; these can belong to the same model or two different models.
Manual References:
Solid: Conversion to a New Unit System, Solid: Conversion to a New Unit System
Parameters:
Unit
 
Returns: