Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to run a rule to suppress elements of a pattern. When I try to run the rule for Element1 it didn't work but it works for other elements. Any ideas?
If [arka] = True Then Dim oDoc As AssemblyDocument oDoc = ThisApplication.ActiveDocument Dim oPattern As OccurrencePattern oPattern = oDoc.ComponentDefinition.OccurrencePatterns.Item("Component Pattern 10:1") Dim oElement As OccurrencePatternElement oPattern.OccurrencePatternElements.Item(1).Suppressed=False Else Dim oDoc As AssemblyDocument oDoc = ThisApplication.ActiveDocument Dim oPattern As OccurrencePattern oPattern = oDoc.ComponentDefinition.OccurrencePatterns.Item("Component Pattern 10:1") Dim oElement As OccurrencePatternElement oPattern.OccurrencePatternElements.Item(1).Suppressed = True End If
Solved! Go to Solution.