<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Export Assembly BOM with Parent Part numbers in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/8752891#M94601</link>
    <description>&lt;P&gt;Nick,&amp;nbsp; were you ever able to figure out a solution?&amp;nbsp; This functionality is something I'd be interested in as well.&amp;nbsp; Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 14:09:13 GMT</pubDate>
    <dc:creator>Brett.G</dc:creator>
    <dc:date>2019-04-25T14:09:13Z</dc:date>
    <item>
      <title>Export Assembly BOM with Parent Part numbers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651104#M94593</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a need to use my BOM in another program that&amp;nbsp;has the ability to import complex assemblies in one import.&lt;/P&gt;&lt;P&gt;It uses a "parent part number" field to identify the assemblies.&lt;/P&gt;&lt;P&gt;Anyone have any ideas? I manually added a field and populated it to give you an idea of what I'm looking for.&lt;/P&gt;&lt;P&gt;I left in the "Item" column for a clear picture of the hierarchy, but that isn't necessary for my import.&lt;/P&gt;&lt;P&gt;Part Number, Parent Part Number, Quantity, Unit Quantity&lt;/P&gt;&lt;P&gt;are my minimum fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Parent Part Number.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/443504i80E110BA3F7F989F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Parent Part Number.png" alt="Parent Part Number.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 20:36:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651104#M94593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T20:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export Assembly BOM with Parent Part numbers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651125#M94594</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the file format you are needing for the export.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are you trying to do with this exported BOM.&lt;/P&gt;&lt;P&gt;Maybe there are less complex methods to achieve the same as you are needing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 20:52:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651125#M94594</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-12-27T20:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export Assembly BOM with Parent Part numbers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651133#M94595</link>
      <description>&lt;P&gt;The preferred format is .csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am importing into an ERP system that creates routers and work orders. It requires a specific import template as I listed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can import each assembly one by one - but if I can figure this out (with the parent part numbers) then I can do it in one import.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 20:58:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651133#M94595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T20:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export Assembly BOM with Parent Part numbers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651141#M94596</link>
      <description>&lt;P&gt;What if the Childfile is used in more than one parent?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 20:59:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651141#M94596</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-12-27T20:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export Assembly BOM with Parent Part numbers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651159#M94597</link>
      <description>&lt;P&gt;I am using a "Structured" list with expanded assemblies to give me the following - notice the item numbers that Inventor populated (4.1 is a child of 4): parts are repeated if they are in multiple assemblies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Parent Part Number 2.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/443513i6C11703DD37ADAEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Parent Part Number 2.png" alt="Parent Part Number 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 21:08:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7651159#M94597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T21:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Export Assembly BOM with Parent Part numbers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7657925#M94598</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following suggestion to customize BOM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cadlinecommunity.co.uk/hc/en-us/articles/203364071-Inventor-2017-Quick-Tip-BoM-Customisation-" target="_blank"&gt;https://www.cadlinecommunity.co.uk/hc/en-us/articles/203364071-Inventor-2017-Quick-Tip-BoM-Customisation-&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To import customized BOM, try the following VBA code to import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub BOM_ColumnCustomizasion_Export ()
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
filename = "c:\temp\BOM_Columns.xml"
Call oBOM.ExportBOMCustomization(filename)
Beep
End Sub
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&lt;/PRE&gt;
&lt;P&gt;After importing BOM, try to export BOM using following VBA code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub BOMExport()
    ' Set a reference to the assembly document.
    ' This assumes an assembly document is active.
    Dim oDoc As AssemblyDocument
    Set oDoc = ThisApplication.ActiveDocument

    ' Set a reference to the BOM
    Dim oBOM As BOM
    Set oBOM = oDoc.ComponentDefinition.BOM
    
    ' Set the structured view to 'all levels'
    oBOM.StructuredViewFirstLevelOnly = False

    ' Make sure that the structured view is enabled.
    oBOM.StructuredViewEnabled = True

    ' Set a reference to the "Structured" BOMView
    Dim oStructuredBOMView As BOMView
    Set oStructuredBOMView = oBOM.BOMViews.Item("Structured")
    
    ' Export the BOM view to an Excel file
    oStructuredBOMView.Export "C:\temp\BOM-StructuredAllLevels.xls", kMicrosoftExcelFormat&lt;BR /&gt;&lt;BR /&gt;End Sub
&lt;/PRE&gt;
&lt;P&gt;Hope,&amp;nbsp;this would help you to import assembly with Parent Part Number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 07:06:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7657925#M94598</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-01-02T07:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export Assembly BOM with Parent Part numbers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7658405#M94599</link>
      <description>&lt;P&gt;Thanks Chandra, this looks very promising. I will dig into it and see what I come up with.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:08:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7658405#M94599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T13:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export Assembly BOM with Parent Part numbers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7659925#M94600</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;- let me know if any assistance required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 04:21:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/7659925#M94600</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-01-03T04:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Export Assembly BOM with Parent Part numbers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/8752891#M94601</link>
      <description>&lt;P&gt;Nick,&amp;nbsp; were you ever able to figure out a solution?&amp;nbsp; This functionality is something I'd be interested in as well.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 14:09:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-assembly-bom-with-parent-part-numbers/m-p/8752891#M94601</guid>
      <dc:creator>Brett.G</dc:creator>
      <dc:date>2019-04-25T14:09:13Z</dc:date>
    </item>
  </channel>
</rss>

