User's Guide > Features > Features
Features
All Creo Parametric solid models are made up of features. This section describes how to program on the feature level using Web.Link .
Access to Features
Methods and Properties Introduced:
pfcFeatureGroup.GroupDirectHeader
The methods pfcFeature.ListChildren() and pfcFeature.ListParents() return a sequence of features that contain all the children or parents of the specified feature.
To get the first feature in the specified group access the property pfcFeatureGroup.GroupLeader.
The property pfcFeatureGroup.GroupDirectHeader returns the direct header of the group.
The property pfcFeaturePattern.PatternLeader and the method pfcFeaturePattern.ListMembers() return features that make up the specified feature pattern. See the section Feature Groups and Patterns for more information on feature patterns.
The method pfcSolid.ListFailedFeatures() returns a sequence that contains all the features that failed regeneration.
The method pfcSolid.ListFeaturesByType() returns a sequence of features contained in the model. You can specify which type of feature to collect by passing in one of the pfcFeatureType enumeration objects, or you can collect all features by passing void null as the type. If you list all features, the resulting sequence will include invisible features that Creo Parametric creates internally. Internal features are invisible features used internally for construction purposes. Use the method’s VisibleOnly argument to exclude them. If the argument VisibleOnly is True, the function lists the public features only. If the argument is False, the function lists both public and internal features.
The method pfcSolid.GetFeatureById() returns the feature object with the corresponding integer identifier.
A feature can be edited with the Edit Definition command in Creo Parametric. The method pfcBaseSession.QueryFeatureEdit() returns a list of all the features that are currently being edited by the Edit Definition command.
Was this helpful?