Category Solids and parts, Object ProSolid

Function ProSolidBodyDensityGet


Description
Determines the density of the body.

NOTE: This function returns density of material assigned to body.

Synopsis
#include <ProSolidBody.h>
ProErrorProSolidBodyDensityGet(
ProSolidBody* body
/* (In)
The body handle.
*/
double* density
/* (Out)
The body density (in the units of the model). Density of material assigned to body.
*/
)
Returns
PRO_TK_NO_ERRORThe function retrieved the density.
PRO_TK_BAD_INPUTSThe input argument is invalid.
PRO_TK_E_NOT_FOUNDThe part has not been assigned a density value.

Manual References:

  1. Core: Solids, Parts, and Materials: Mass Properties
  2. Core: Solids, Parts, and Materials: Mass Properties
  3. Migrating to the Multibody Environment: Overview