<?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: BOM EXPORT-VISUAL STUIDO in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-export-visual-stuido/m-p/8460207#M80954</link>
    <description>&lt;P&gt;this is from the API help in Inventor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exporting the assembly BOM&lt;/P&gt;
&lt;DIV id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all"&gt;
&lt;DIV id="VBA" class="api-code ui-tabs-panel ui-widget-content ui-corner-bottom"&gt;
&lt;PRE class="api-code"&gt;Public Sub BOMExport()
    &lt;SPAN style="color: blue;"&gt;' Set a reference to the assembly document.&lt;/SPAN&gt;
    &lt;SPAN style="color: blue;"&gt;' This assumes an assembly document is active.&lt;/SPAN&gt;
    Dim oDoc As AssemblyDocument
    Set oDoc = ThisApplication.ActiveDocument

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;&lt;/SPAN&gt;
    Dim oBOM As &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;
    Set oBOM = oDoc.ComponentDefinition.&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;
    
    &lt;SPAN style="color: blue;"&gt;' Set the structured view to 'all levels'&lt;/SPAN&gt;
    oBOM.StructuredViewFirstLevelOnly = False

    &lt;SPAN style="color: blue;"&gt;' Make sure that the structured view is enabled.&lt;/SPAN&gt;
    oBOM.StructuredViewEnabled = True

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the "Structured" BOMView&lt;/SPAN&gt;
    Dim oStructuredBOMView As BOMView
    Set oStructuredBOMView = oBOM.BOMViews.Item("Structured")
    
    &lt;SPAN style="color: blue;"&gt;' &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;Export&lt;/FONT&gt; the &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt; view to an Excel file&lt;/SPAN&gt;
    oStructuredBOMView.&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;Export&lt;/FONT&gt; "C:\temp\&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;-StructuredAllLevels.xls", kMicrosoftExcelFormat
  
    &lt;SPAN style="color: blue;"&gt;' Make sure that the parts only view is enabled.&lt;/SPAN&gt;
    oBOM.PartsOnlyViewEnabled = True

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the "Parts Only" BOMView&lt;/SPAN&gt;
    Dim oPartsOnlyBOMView As BOMView
    Set oPartsOnlyBOMView = oBOM.BOMViews.Item("Parts Only")

    &lt;SPAN style="color: blue;"&gt;' &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;Export&lt;/FONT&gt; the &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt; view to an Excel file&lt;/SPAN&gt;
    oPartsOnlyBOMView.&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;Export&lt;/FONT&gt; "C:\temp\&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;-PartsOnly.xls", kMicrosoftExcelFormat
End Sub&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 11 Dec 2018 15:30:19 GMT</pubDate>
    <dc:creator>HermJan.Otterman</dc:creator>
    <dc:date>2018-12-11T15:30:19Z</dc:date>
    <item>
      <title>BOM EXPORT-VISUAL STUIDO</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-export-visual-stuido/m-p/8459616#M80952</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm being asked more and more to export BOM's from inventor from Non inventor users. ie users without an inventor installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I figured I could do something in Visual Studio, the program would have to acquire a network license. and then allow the user to search our network drive for a number and then just export an indented BOM basically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone done anything similar already or any pointers at all on the way to acquiring a license from VS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help/nudge in the right direction would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks all&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 12:30:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-export-visual-stuido/m-p/8459616#M80952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-11T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: BOM EXPORT-VISUAL STUIDO</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-export-visual-stuido/m-p/8460192#M80953</link>
      <description>&lt;P&gt;Hi, I think you need to look at Vault Professional, that would solve your question.&lt;/P&gt;
&lt;P&gt;but if you don't want to pay than maybe you could do things with Apprentice:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://aucache.autodesk.com/au2011/sessions/5606/class_presentations/v1_CP5606-Apprentice.pdf" target="_blank"&gt;http://aucache.autodesk.com/au2011/sessions/5606/class_presentations/v1_CP5606-Apprentice.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 15:28:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-export-visual-stuido/m-p/8460192#M80953</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2018-12-11T15:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: BOM EXPORT-VISUAL STUIDO</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-export-visual-stuido/m-p/8460207#M80954</link>
      <description>&lt;P&gt;this is from the API help in Inventor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exporting the assembly BOM&lt;/P&gt;
&lt;DIV id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all"&gt;
&lt;DIV id="VBA" class="api-code ui-tabs-panel ui-widget-content ui-corner-bottom"&gt;
&lt;PRE class="api-code"&gt;Public Sub BOMExport()
    &lt;SPAN style="color: blue;"&gt;' Set a reference to the assembly document.&lt;/SPAN&gt;
    &lt;SPAN style="color: blue;"&gt;' This assumes an assembly document is active.&lt;/SPAN&gt;
    Dim oDoc As AssemblyDocument
    Set oDoc = ThisApplication.ActiveDocument

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;&lt;/SPAN&gt;
    Dim oBOM As &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;
    Set oBOM = oDoc.ComponentDefinition.&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;
    
    &lt;SPAN style="color: blue;"&gt;' Set the structured view to 'all levels'&lt;/SPAN&gt;
    oBOM.StructuredViewFirstLevelOnly = False

    &lt;SPAN style="color: blue;"&gt;' Make sure that the structured view is enabled.&lt;/SPAN&gt;
    oBOM.StructuredViewEnabled = True

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the "Structured" BOMView&lt;/SPAN&gt;
    Dim oStructuredBOMView As BOMView
    Set oStructuredBOMView = oBOM.BOMViews.Item("Structured")
    
    &lt;SPAN style="color: blue;"&gt;' &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;Export&lt;/FONT&gt; the &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt; view to an Excel file&lt;/SPAN&gt;
    oStructuredBOMView.&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;Export&lt;/FONT&gt; "C:\temp\&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;-StructuredAllLevels.xls", kMicrosoftExcelFormat
  
    &lt;SPAN style="color: blue;"&gt;' Make sure that the parts only view is enabled.&lt;/SPAN&gt;
    oBOM.PartsOnlyViewEnabled = True

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the "Parts Only" BOMView&lt;/SPAN&gt;
    Dim oPartsOnlyBOMView As BOMView
    Set oPartsOnlyBOMView = oBOM.BOMViews.Item("Parts Only")

    &lt;SPAN style="color: blue;"&gt;' &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;Export&lt;/FONT&gt; the &lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt; view to an Excel file&lt;/SPAN&gt;
    oPartsOnlyBOMView.&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;Export&lt;/FONT&gt; "C:\temp\&lt;FONT style="background-color: #0078d7;" color="#ffffff"&gt;BOM&lt;/FONT&gt;-PartsOnly.xls", kMicrosoftExcelFormat
End Sub&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Dec 2018 15:30:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-export-visual-stuido/m-p/8460207#M80954</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2018-12-11T15:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: BOM EXPORT-VISUAL STUIDO</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/bom-export-visual-stuido/m-p/8460218#M80955</link>
      <description>&lt;P&gt;thx for the apprentice doc, that looks like the route I may go down.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 15:32:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/bom-export-visual-stuido/m-p/8460218#M80955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-11T15:32:39Z</dc:date>
    </item>
  </channel>
</rss>

