Category Solids and parts, Object ProSolid

Function ProSolidBodyMassPropertyGet


Description
Calculates the mass properties of a body in the specified coordinate system.
Synopsis
#include <ProSolidBody.h>
ProErrorProSolidBodyMassPropertyGet(
ProSolidBody* body
/* (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.
*/
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
  3. Migrating to the Multibody Environment: Overview