Category View manager, Object ProXsec

Function ProXsecParallelCreate


Description
Create a cross section parallel to a given plane.
Replacement in Object TOOLKIT: wfcWSolid::CreateParallelXSection
Synopsis
#include <ProXsec.h>
ProErrorProXsecParallelCreate(
ProSolid solid_owner
/* (In)
Solid in which the xsec is to be created. Cannot be NULL.
*/
ProName xsec_name
/* (In)
Name of the cross section. Cannot be NULL. Cannot be empty.
*/
int plane_id
/* (In)
ID of the given plane. This plane must belong to the solid_owner.
*/
double distance
/* (In)
Distance from the given plane to the cross section plane.
*/
ProXsec* p_xsec
/* (Out)
Handle to created cross section. Cannot be NULL.
*/
ProDimension* p_dimension
/* (Out)
Handle for created dimension between given plane and the cross section.
*/
)
Returns
PRO_TK_NO_ERRORCross section successfully created.
PRO_TK_BAD_INPUTSInvalid input parameters: NULL arguments, or solid_owner is not a solid, or empty xsec_name, or plane_id does not correspond to a plane.
PRO_TK_E_FOUNDCross section with such name already exists.
PRO_TK_GENERAL_ERRORFailed to create cross section.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Cross Sections: Creating and Modifying Cross Sections
  3. Core: Cross Sections: Creating and Modifying Cross Sections

Sample Code References:

  1. pt_userguide ( UgXsecMassProps.c )