User's Guide > Features > Features > Access to Features
Access to Features
 
Methods and Properties Introduced:
The methods IpfcFeature.ListChildren() and IpfcFeature.ListParents() return a sequence of features that contain all the children or parents of the specified feature.
The property IpfcFeature.GroupDirectHeader returns the direct header of the group.
To get the first feature in the specified group access the property IpfcFeatureGroup.GroupLeader.
The property IpfcFeaturePattern.PatternLeader and the method IpfcFeaturePattern.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 IpfcSolid.ListFailedFeatures() returns a sequence that contains all the features that failed regeneration.
The method IpfcSolid.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 EpfcFeatureType 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 IpfcSolid.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 IpfcBaseSession.QueryFeatureEdit( returns a list of all the features that are currently being edited by the Edit Definition command.
Was this helpful?