Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I saw on the following link an interesting code on how to suppress components by clicking.
Sub Main If ThisApplication.ActiveDocumentType <> kAssemblyDocumentObject Then MessageBox.Show("This rule is designed to only work in assembly documents.", "Wrong Document Type") : Exit Sub Dim PickLeafOC As ComponentOccurrence = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAssemblyLeafOccurrenceFilter, "Select a Component to Supress") If IsNothing(PickLeafOC) Then Exit Sub ' If nothing gets selected then we're done PickLeafOC.Suppress() End Sub
Is there a way to suppress a component that is in a pattern?
Regards,
Tom
Solved! Go to Solution.