| Description | ||||||||
| Sets the current system of units assigned to the model.
Note: this will regenerate the model. |
||||||||
| Replacement in Object TOOLKIT: | pfcSolid::SetPrincipalUnits | |||||||
| Synopsis | ||||||||
| #include <ProMdlUnits.h> | ||||||||
| ProError | ProMdlPrincipalunitsystemSet | ( | ||||||
| ProMdl mdl | ||||||||
| /* (In) | ||||||||
| The model handle. | ||||||||
| */ | ||||||||
| ProUnitsystem* new_system | ||||||||
| /* (In) | ||||||||
| The principal system of units for the model. | ||||||||
| */ | ||||||||
| ProUnitConvertType type | ||||||||
| /* (In) | ||||||||
| PRO_UNITCONVERT_SAME_DIMS to convert the model using the same dimension values. PRO_UNITCONVERT_SAME_SIZE to convert the model using the same size. | ||||||||
| */ | ||||||||
| ProBoolean ignore_param_units | ||||||||
| /* (In) | ||||||||
| PRO_B_TRUE to ignore parameter units during conversion (maintain current values and unit types). PRO_B_FALSE to use the unit conversion type to govern conversion of units in parameters. | ||||||||
| */ | ||||||||
| int regeneration_flags | ||||||||
| /* (In) | ||||||||
| This argument is reserved for future use. Pass PRO_VALUE_UNUSED to avoid application behavioral changes once this argument becomes interpreted by the function. The current implementation for the function will invoke the Fix Model UI if the conversion causes a regeneration failure. | ||||||||
| */ | ||||||||
| ) | ||||||||
| Returns | ||||||||
|
||||||||