Message 1 of 8

Not applicable
09-20-2013
07:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys!
Curious if anyone knows how to modify the code below to delete suppressed parts in a pattern (entire pattern)?
Dim oComp As ComponentOccurrence Dim oComps As ComponentOccurrences oComps = ThisDoc.Document.ComponentDefinition.Occurrences For Each oComp In oComps If Component.IsActive(oComp.Name) = False Then oComp.Delete Next
Code works fine if there are single instances of the part. It throws a error when you have a suppressed pattern.
Thank you in advance.
Alex.
Solved! Go to Solution.