Message 1 of 6
It is posible to import BOM from VB.NET ?

Not applicable
06-08-2015
10:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm using Inventor 2015 and I need to customize the BOM so I have to import an .xml file from code but I don't know how to do it from VB.NET.
I have seen some responses but it's from VBA:
Sub BOM_ColumnCustomizasion_Import ()
Dim oAsmDoc As AssemblyDocument
Set oAsmDoc = ThisApplication.ActiveDocument
Dim oAsmDef As AssemblyComponentDefinition
Set oAsmDef = oAsmDoc.ComponentDefinition
Dim oBOM As BOM
Set oBOM = oAsmDef.BOM
Dim filename As String 'assume the file exists
filename = "c:\temp\BOM_Columns.xml"
Call oBOM.ImportBOMCustomization(filename)
Beep
End Sub
And this is what I would be doing from Inventor GUI that I want to do from VB.NET: