User's guide > Features > Feature Operations
Feature Operations
 
Methods Introduced:
The method pfcSolid.Solid.ExecuteFeatureOps causes a sequence of feature operations to run in order. Feature operations include suppressing, resuming, reordering, and deleting features. The optional RegenInstructions argument specifies whether the user will be allowed to fix the model if a regeneration failure occurs.
* 
Regenerating models in resolve_mode is not supported. As a result, the method pfcSolid.Solid.ExecuteFeatureOps is not supported anymore. PTC recommends to use the alternative methods wfcSolid.WSolid.DeleteFeatures, wfcSolid.WSolid.SuppressFeatures, wfcSolid.WSolid.ResumeFeatures and wfcSolid.WSolid.ReorderFeatures to delete, suppress, resume and reorder a list of features.
You can create an operation that will delete, suppress, reorder, or resume certain features using the methods in the interface pfcFeature.Feature. Each created operation must be passed as a member of the FeatureOperations object to the method pfcSolid.Solid.ExecuteFeatureOps. You can create a sequence of the FeatureOperations object using the method pfcFeature.FeatureOperations.create.
Some of the operations have specific options that you can modify to control the behavior of the operation:
Clip—Specifies whether to delete or suppress all features after the selected feature. By default, this option is false.
AllowGroupMembers—If this option is set to true and if the feature to be deleted or suppressed is a member of a group, then the feature will be deleted or suppressed out of the group. If this option is set to false, then the entire group containing the feature is deleted or suppressed. By default, this option is false. It can be set to true only if the option Clip is set to true.
AllowChildGroupMembers—If this option is set to true and if the children of the feature to be deleted or suppressed are members of a group, then the children of the feature will be individually deleted or suppressed out of the group. If this option is set to false, then the entire group containing the feature and its children is deleted or suppressed. By default, this option is false. It can be set to true only if the options Clip and AllowGroupMembers are set to true.
KeepEmbeddedDatums—Specifies whether to retain the embedded datums stored in a feature while deleting the feature. By default, this option is false.
Use the method pfcFeature.DeleteOperation.SetKeepEmbeddedDatums to modify this option.
WithParents—Specifies whether to resume the parents of the selected feature.
Use the method pfcFeature.ResumeOperation.SetWithParents to modify this option.
BeforeFeat—Specifies the feature before which you want to reorder the features.
Use the method pfcFeature.ReorderBeforeOperation.SetBeforeFeat to modify this option.
AfterFeat—Specifies the feature after which you want to reorder the features.
Use the method pfcFeature.ReorderAfterOperation.SetAfterFeat to modify this option.
Use the methods wfcSolid.WSolid.DeleteFeatures, wfcSolid.WSolid.SuppressFeatures, wfcSolid.WSolid.ResumeFeatures and wfcSolid.WSolid.ReorderFeatures to delete, suppress, resume and reorder a list of features. The input parameters for all the methods are:
FeatIDs—The list of IDs for the features to be deleted, suppressed, reordered or resumed.
Options—The list of options to be used. This input argument is not applicable to the method wfcSolid.WSolid.ReorderFeatures.
Instrs—Regeneration instructions to be used.
The reorder method takes its second input parameter as:
NewFeatNum—The intended location of the first feature in the specified list.
Was this helpful?