06-22-2023
06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-22-2023
06:21 AM
Hi @tcaG6GZK ,
See this updated example. This will cycle through all of the browser folders, strip off BOM structure overrides, and set the component BOM structure to Purchased.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
oPane = ThisApplication.ActiveDocument.BrowserPanes("Model") For Each oFolder In oPane.TopNode.BrowserFolders 'look at each item in the folder For Each oNode As BrowserNode In oFolder.BrowserNode.BrowserNodes oComp = oNode.NativeObject oComp.BOMStructure = BOMStructureEnum.kDefaultBOMStructure 'remove BOMStructure override if present oComp.Definition.BOMStructure = BOMStructureEnum.kPurchasedBOMStructure Next Next