Message 1 of 7

Not applicable
09-26-2017
09:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm sure this has been address before..but of course I can't make it work. I need to have a global rule that will suppress any feature containing the string "control_side" .
I've tried this code I found elsewhere & modified:
SyntaxEditor Code Snippet
myparam = "control_side" Dim oDoc as PartDocument oDoc = ThisApplication.ActiveDocument Dim oFeature As PartFeature For Each oFeature In oDoc.ComponentDefinition.Features If oFeature.Name.ToUpper.Contains(myparam.ToUpper) Then oFeature.Suppressed = True oDoc.Update End If Next
...but no dice. Can someone get me over the finish line? Thanks in advance!
Solved! Go to Solution.