Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: frederic.vandenplas

It doesn’t have to open on that tab. I just want to be able to use the code below and want it to open the BOM to view with the same rule.

 

SyntaxEditor Code Snippet

Dim oAsmDoc As AssemblyDocument = ThisDoc.Document
Dim oAsmDef As AssemblyComponentDefinition = oAsmDoc.ComponentDefinition
Dim oBOM As BOM = oAsmDef.BOM
 
Dim filename As String = "P:\Engineering\Inventor\BOM List\Profit Key BOM.xml"
Call oBOM.importBOMCustomization(filename)