Category Features, Object ProPattern

Function ProPatternElemtreeCreate


Description
Creates a copy of the pattern element tree.

NOTE:

Because a feature can be part of both a group pattern and feature pattern, you must specify the pattern object for this function. Use the functions ProFeatureGroupStatusGet() and ProFeatureGrppatternStatusGet() to get the appropriate information. Alternatively, you can use the feature element tree to get this information.

Synopsis
#include <ProPattern.h>
ProErrorProPatternElemtreeCreate(
ProFeature* pattern_feature
/* (In)
The input feature (part of a pattern)
*/
ProPatternClass pat_class
/* (In)
The pattern class
*/
ProElement* p_elem_tree
/* (Out)
The root element of the pattern element tree
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the pattern element tree.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_NOT_IMPLEMENTEDReturned for fill, axis and directional patterns, as these element trees are not yet available.

Manual References:

  1. Element Trees: Patterns: Obtaining the Element Tree for a Pattern

Sample Code References:

  1. pt_examples ( TestFeats.c )