Documentation de l'API > Solids and parts > Object ProSolid > Function ProSolidMassPropertyGet
Function ProSolidMassPropertyGet
Description
Calculates the mass properties of a part or an assembly in the specified coordinate system.
Replacement in Object TOOLKIT:
Synopsis
#include <ProSolid.h>
ProSolidMassPropertyGet
(
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
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.
Sample Code References
User Guide References
Est-ce que cela a été utile ?