Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

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