Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've scoured the web and I am at a roadblock. I need help converting the following illogic code so that it applies to all child assemblies (All lower level Assemblies.)
I am not skilled at coding so any help would be appreciated. 🙂
Sub Main()
Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument
Dim oBOM As BOM
oBOM = oDoc.ComponentDefinition.BOM
For Each oDoc In ThisApplication.Documents
If oDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
oBOM.StructuredViewEnabled = True
oBOM.StructuredViewFirstLevelOnly = True
oBOM.PartsOnlyViewEnabled = True
End If
Next
End Sub
Solved! Go to Solution.