API 설명서 > Assembly > Object ProAssembly > Function ProAssemblySolidMassPropertyGet
Function ProAssemblySolidMassPropertyGet
Description
Calculates the mass properties of solid referenced by the specified coordinate system selection.
Notes: Allocate the coordinate system selection using component path of component/sub-assembly whose mass properties are required.
Replacement in Object TOOLKIT:
Synopsis
#include <ProSolid.h>
ProAssemblySolidMassPropertyGet
(
ProSolid solid
/* (In)
The handle to top assembly or component/sub-assembly.
*/
ProSelection csys_sel
/* (In)
The selection reference for the coordinate system. If this is NULL, the function uses the default coordinate system of the input solid.
*/
ProMassProperty* mass_prop
/* (Out)
The mass property.
*/
)
Returns
The function successfully retrieved the information.
The assembly handle or csys selection is invalid.
The specified coordinate system was not found.
PRO_TK_GENREAL_ERROR
A general error occurred and the function failed.
User Guide References
도움이 되셨나요?