Category Solids and parts, Object ProPart

Function ProPartDensitySet


DEPRECATED: Since Creo 7.0.0.0
SUPERSEDED BY: ProMaterialCurrentSet, ProMaterialPropertySet
Description
Sets the density of the part.

NOTE: This function is deprecated. Please use ProMaterialCurrentSet instead for set current material with density. Please use ProMaterialPropertySet with PRO_MATPROP_MASS_DENSITY to change density in the material.

Replacement in Object TOOLKIT: wfcWPart::SetDensity
Synopsis
#include <ProPart.h>
ProErrorProPartDensitySet(
ProPart part
/* (In)
The part handle.
*/
double density
/* (In)
The part density (in the units of the model). If the part has been assigned a material, this will modify the density of the material.
*/
)
Returns
PRO_TK_NO_ERRORThe function retrieved the density.
PRO_TK_BAD_INPUTSOne or more input arguments is invalid.

Manual References:

  1. Core: Solids, Parts, and Materials: Density
  2. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0
  3. Migrating to the Multibody Environment: Impact on Existing APIs