Category View manager, Object ProXsec

Function ProXsecPlanarWithoptionsCreate


DEPRECATED: Since Creo 7
SUPERSEDED BY: ProXSectionPlanarCreate
Description
Creates a cross section through a datum plane and makes it visible.

NOTE: This function is deprecated. Please use ProXSectionPlanarCreate instead.

Replacement in Object TOOLKIT: wfcWSolid::CreatePlanarXSection
Synopsis
#include <ProXsec.h>
ProErrorProXsecPlanarWithoptionsCreate(
ProSolid solid_owner
/* (In)
Solid in which the xsec is to be created.
*/
ProName xsec_name
/* (In)
Name of the cross section.
*/
int plane_id
/* (In)
ID of the cutting plane. This plane must belong to the solid_owner.
*/
ProXsecCutobj xsec_type
/* (In)
Type of object being cut by the xsec.
*/
int* memb_id_tab
/* (In)
ProArray of integer identifiers forming the path to the component whose quilt is being cut if xsec_type is PRO_XSECTYPE_QUILTS, or the component if xsec_type is PRO_XSECTYPE_ONEPART
*/
int quilt_id
/* (In)
ID of the quilt being cut if xsec_type is PRO_XSECTYPE_QUILTS; -1 in all other cases. The quilt may belong to the solid_owner or its sub-assemblies.
*/
int flip
/* (In)
xsec flip with respect to cutting plane positive normal.
*/
ProXsecExcludeModels model_opt
/* (In)
option for exclude/include;
*/
ProAsmpath* comp_id_tabs
/* (In)
ProArray of ProAsmpath for excluded/included components.
*/
ProXsec* xsec
/* (Out)
Handle to created cross section
*/
)
Returns
PRO_TK_NO_ERRORCross section successfully created.
PRO_TK_BAD_INPUTSInvalid input parameter(s).
PRO_TK_GENERAL_ERRORFailed to create cross section.

Manual References:

  1. Core: Cross Sections: Creating and Modifying Cross Sections
  2. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0
  3. Migrating to the Multibody Environment: Impact on Existing APIs

Sample Code References:

  1. pt_examples ( TestXsec.c )