Documentação da API > Solids and parts > Object ProSolid > Function ProSolidMassPropertyWithDensityGet
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.
Replacement in Object TOOLKIT:
Synopsis
#include <ProSolid.h>
ProSolidMassPropertyWithDensityGet
(
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
The function successfully retrieved the information.
The solid handle is invalid.
The specified coordinate system was not found.
PRO_TK_GENREAL_ERROR
A general error occurred and the function failed.
User Guide References
Isto foi útil?