Documentación de la API > Creo Parametric fundamentals > Object ProMdl > Function ProMdlPrincipalunitsystemSet
Function ProMdlPrincipalunitsystemSet
Description
Sets the current system of units assigned to the model.
Note: this will regenerate the model.
Replacement in Object TOOLKIT:
Synopsis
#include <ProMdlUnits.h>
ProMdlPrincipalunitsystemSet
(
ProMdl mdl
/* (In)
The model handle.
*/
ProUnitsystem* new_system
/* (In)
The principal system of units for the model.
*/
/* (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
The function succeeded.
Model is in read-only state.
One or more arguments was invalid.
Sample Code References
User Guide References
¿Fue esto útil?