Category View manager, Object ProXsec

Function ProXsecMassPropertyCompute


Description
Compute the mass properties of the cross-section in the specified coordinate system.

Note:

Not supported for offset or quilt cross-sections.

Replacement in Object TOOLKIT: wfcWXSection::GetMassProperty
Synopsis
#include <ProXsec.h>
ProErrorProXsecMassPropertyCompute(
ProXsec* xsec
/* (In)
Cross-section
*/
ProName csys_name
/* (In)
Name of reference coordinate system
*/
ProMassProperty* p_mass_prop
/* (Out)
The following results are returned for cross sections:
Value Returned Structure Field Used
area surface_area
center_of_gravity center_of_gravity[0] and center_of_gravity[1]
coor_sys_inertia coor_sys_inertia[0][0], coor_sys_inertia[0][1], coor_sys_inertia[1][0], coor_sys_inertia[1][1]
*/
)
Returns
PRO_TK_NO_ERRORData successfully computed.
PRO_TK_BAD_INPUTSInvalid input parameter(s).

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Cross Sections: Mass Properties of Cross Sections

Sample Code References:

  1. pt_examples ( TestXsec.c )
  2. pt_userguide ( UgXsecMassProps.c )