Category Features, Object ProPattern

Function ProPatternInAssemblyCreate


Description
Creates a pattern in assembly, given the 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>
ProErrorProPatternInAssemblyCreate(
ProAsmcomppath* p_component_path
/* (In)
The component path
*/
ProFeature* pattern_feature
/* (In)
The feature
*/
ProPatternClass pat_class
/* (In)
The pattern class
*/
ProElement elem_tree
/* (In)
The root element of the pattern element tree
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the pattern.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
PRO_TK_UNSUPPORTEDUnsupported model. For instance, models which come from Multi-CAD assemblies are not supported in this release.
PRO_TK_ABORTFailed to create pattern feature. One of the reason for this error is- creating new pattern with a name that already exists.

Manual References:

  1. Element Trees: Patterns: Visiting and Creating a Pattern