Category Solids and parts, Object ProSolid

Function ProSolidMassPropertyWithDensityGet


Description
Calculates the mass properties of a part or an assembly in the specified coordinate system. This function doesn't affect the Solid mass properties.
Synopsis
#include <ProSolid.h>
ProErrorProSolidMassPropertyWithDensityGet(
ProSolid solid
/* (In)
The handle to a part or an assembly.
*/
ProName csys_name
/* (In)
The name of the coordinate system. If this is NULL, the function uses the default coordinate system.
*/
ProMPDensUse dens_use_flag
/* (In)
One of three values:
*/
double density
/* (In)
density used while calculating mass properties depending on dens_use_flag parameter
*/
ProMassProperty* mass_prop
/* (Out)
The mass property.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSThe solid handle is invalid.
PRO_TK_E_NOT_FOUNDThe specified coordinate system was not found.
PRO_TK_GENREAL_ERRORA general error occurred and the function failed.

Manual References:

  1. Core: Solids, Parts, and Materials: Mass Properties
  2. Core: Solids, Parts, and Materials: Mass Properties