<?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: Import BOM structure in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3377469#M137121</link>
    <description>&lt;P&gt;Maybe as a workaround you could use the Sendkeys statement to control the UI?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2012 07:46:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-20T07:46:14Z</dc:date>
    <item>
      <title>Import BOM structure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3368595#M137118</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;By the UI, you can import the BOM structure via an XML file. Is it possible by API ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2012 09:35:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3368595#M137118</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-03-13T09:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Import BOM structure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3371919#M137119</link>
      <description>&lt;P&gt;Nobody use BOM ?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 09:22:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3371919#M137119</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-03-15T09:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Import BOM structure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3372055#M137120</link>
      <description>&lt;P&gt;As far as I know at this time importing is not something that can be done from the API. I have gone through this before and never even could find a method to call the import form since it does not show to have a command name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 12:07:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3372055#M137120</guid>
      <dc:creator>Mike.Wohletz</dc:creator>
      <dc:date>2012-03-15T12:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Import BOM structure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3377469#M137121</link>
      <description>&lt;P&gt;Maybe as a workaround you could use the Sendkeys statement to control the UI?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2012 07:46:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3377469#M137121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-20T07:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Import BOM structure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3377549#M137122</link>
      <description>&lt;P&gt;Good idea... Unfortunately, when you are in the BOM window, there is no keyboard key for the "Import" button...&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2012 09:27:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3377549#M137122</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-03-20T09:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Import BOM structure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3404375#M137123</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being headstrong I couldn't withstand the challenge&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;. Below is the code&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; for importing the xml from within a drawing, specifically from the partslist (with IV2011). Didn't test the other options shown in the code, but that's up to you if needed.&lt;/P&gt;&lt;P&gt;Have fun!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub ImportBOMxml()&lt;BR /&gt;&amp;nbsp;Dim oDoc As Document&lt;BR /&gt;&amp;nbsp;Set oDoc = ThisApplication.ActiveDocument&lt;BR /&gt;&amp;nbsp;Select Case oDoc.DocumentType&lt;BR /&gt;&amp;nbsp; Case kDrawingDocumentObject&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oPartsList As PartsList&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oPartsList = oDoc.ActiveSheet.PartsLists.Item(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oDoc.SelectSet.Clear&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oDoc.SelectSet.Select oPartsList&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oCommandMgr As CommandManager&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oCommandMgr = ThisApplication.CommandManager&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oCMD As ControlDefinition&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oCMD = oCommandMgr.ControlDefinitions.Item("DrawOpenBOMEditorPartListCmd")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call oCMD.Execute2(False)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'DrawOpenBOMEditorComponentCmd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open Bill of Materials editor for selected assembly&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'DrawOpenBOMEditorPartListCmd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open Bill of Materials editor for assembly of selected part list&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'DrawOpenBOMEditorViewCmd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open Bill of Materials editor for assembly of selected view&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'AssemblyBillOfMaterialsCmd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open Bill of Materials editor from within an assembly&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMLfile = "C:\temp\test.xml"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SendKeys ("^{TAB}")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SendKeys ("{LEFT}")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SendKeys ("{LEFT}")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SendKeys ("{ENTER}") 'open Import BOM customization dialog&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SendKeys (XMLfile)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SendKeys ("^{TAB}")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SendKeys ("^{TAB}")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SendKeys ("{ENTER}") 'enact Import BOM customization&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SendKeys "%{F4}", True&lt;BR /&gt;&amp;nbsp;End Select&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Sun, 08 Apr 2012 22:48:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3404375#M137123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-08T22:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import BOM structure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3406181#M137124</link>
      <description>&lt;P&gt;This is exactly what I'm looking for, but this function from a drawing... I need the same thing, but from an assembly. So I&amp;nbsp; changed "DrawOpenBOMEditorPartListCmd" by "AssemblyBillOfMaterialsCmd" and adapt the code, The problem is the BOM dialog box does not function the same way when you open it from the drawing or from the assembly ! From the drawing, ^tab move the cursor to the buttons (Import, Export or Finish). From the iam, ^tab move from a tab to another tab. There is no keyboard shortcut to go to Import...&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 08:58:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/import-bom-structure/m-p/3406181#M137124</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-04-10T08:58:50Z</dc:date>
    </item>
  </channel>
</rss>

