Message 1 of 2
Delete Suppressed Features in Part Document using Macro

Not applicable
12-13-2017
06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
This may help someone who looks for macro to delete the Suppressed Features in Part Document.
----------------------------------------
Function Delete_Suppressed_Feature()
Dim oPartDoc As PartDocument
Set oPartDoc = ThisApplication.ActiveDocument
' Iterate through all featuresand Delete the Suppressed Features.
Dim oPartFeature As PartFeature
For Each oPartFeature In oPartDoc.ComponentDefinition.Features
If oPartFeature.Suppressed = True Then
On Error Resume Next
oPartFeature.Delete
End If
Next
MsgBox "All Suppressed Parts Features are now Deleted."
End Function
----------------------------------------
Regards
Alex