Category Solids and parts, Object ProSolid

Function ProSolidMassPropertyWrite


Description
Writes the mass properties of solid/body 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.

Synopsis
#include <ProSolid.h>
ProErrorProSolidMassPropertyWrite(
ProSelection solid_or_body
/* (In)
The handle to solid,body
*/
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.
*/
ProMassPropertyFormat format
/* (In)
format
*/
wchar_t* file_path
/* (In)
file
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSThe solid/body handle or csys selection 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