Creating Local Groups
Function Introduced:
Local groups offer a way to collect several features together as if they were one feature. This functionality is particularly useful when you are creating patterns.
The function
ProLocalGroupCreate() groups together features specified by an array of feature identifiers. The output of
ProLocalGroupCreate() is the object
ProGroup, which a typedef of a structure similar to
ProFeature.
The feature identifiers passed to
ProLocalGroupCreate() must correspond to features that possess consecutive regeneration numbers. That is, the feature identifiers can have any values, but the corresponding features must occupy a contiguous portion of the regeneration list. (To see the regeneration number of a feature, add the column
Feat # to the model tree.)
If there are features whose regeneration numbers lie between those belonging to the features to be grouped, Creo+ asks the user whether these unspecified features are to be included in the group. If the user responds with No, the group is not created.
After you create a local group, you may want to refresh the model tree to see the changes. To refresh the model tree, call
ProTreetoolRefresh().