Category Solids and parts, Object ProSolid

Function ProSolidMassPropertyGet


Description
Calculates the mass properties of a part or an assembly in the specified coordinate system.
Replacement in Object TOOLKIT: pfcSolid::GetMassProperty
Synopsis
#include <ProSolid.h>
ProErrorProSolidMassPropertyGet(
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.
*/
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. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Solids, Parts, and Materials: Mass Properties
  3. Core: Solids, Parts, and Materials: Mass Properties
  4. Core: Solids, Parts, and Materials: Density

Sample Code References:

  1. pt_examples ( TestSolid.c )
  2. pt_userguide ( UgSolidInfoMass.c )