<?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: Getting iAssembly Name using Inventor API in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268872#M18437</link>
    <description>&lt;P&gt;I managed to get the active iAssembly name via:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;oDocument.ComponentDefinition.iAssemblyFactory.DefaultRow.MemberName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it didn't really help with the final BOM export. Is there an option in the Export to use a specific iAssembly member?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 03:35:57 GMT</pubDate>
    <dc:creator>ilyas_adnm</dc:creator>
    <dc:date>2023-09-27T03:35:57Z</dc:date>
    <item>
      <title>Getting iAssembly Name using Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268851#M18436</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to export BOM using iLogic, but when it comes to iAssemblies, it exports the QTY's for all the iAssembly members. I'm trying to define the BOMView iAssembly member like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oDocument As AssemblyDocument = ThisApplication.ActiveDocument
Logger.Trace(oDocument.ComponentDefinition.iAssemblyMember.Row.MemberName)
Dim oBOMView As BOMView = oDocument.ComponentDefinition.BOM.BOMViews.Item("Structured")
If Not oDocument.ComponentDefinition.iAssemblyMember Is Nothing Then oBOMView.iAssemblyMemberName= oDocument.ComponentDefinition.iAssemblyMember.Row.MemberName
oBOMView.Export("C:\Users\Ilyas\Desktop\test.xlsx", kMicrosoftExcelFormat)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm not able to get the iAssembly name. Does anyone know the trick?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ilyas&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 03:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268851#M18436</guid>
      <dc:creator>ilyas_adnm</dc:creator>
      <dc:date>2023-09-27T03:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iAssembly Name using Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268872#M18437</link>
      <description>&lt;P&gt;I managed to get the active iAssembly name via:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;oDocument.ComponentDefinition.iAssemblyFactory.DefaultRow.MemberName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it didn't really help with the final BOM export. Is there an option in the Export to use a specific iAssembly member?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 03:35:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268872#M18437</guid>
      <dc:creator>ilyas_adnm</dc:creator>
      <dc:date>2023-09-27T03:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iAssembly Name using Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268894#M18438</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6067090"&gt;@ilyas_adnm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Place the iassembly member into an assembly and export the bom from there. Or maybe you could try opening the member document manually and see if the bom is available for export. If it is then replicate by code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 03:55:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268894#M18438</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-09-27T03:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iAssembly Name using Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268920#M18439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for the suggestions. I would consider these as a possible workaround for getting the particular iAssemblyMember BOM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the thing is, I already have a script that does a few things before and after it exports, the BOM. I'm hoping to minimize the change to the existing code and see if I can just tweak the export function to get the active iAssemblyMember.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ilyas&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 04:17:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268920#M18439</guid>
      <dc:creator>ilyas_adnm</dc:creator>
      <dc:date>2023-09-27T04:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iAssembly Name using Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268962#M18440</link>
      <description>&lt;P&gt;Can you get the correct bom to export manually from within the factory file?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 04:51:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268962#M18440</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-09-27T04:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iAssembly Name using Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268980#M18441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, if I export using the Export BOM icon in the BOM window, it only exports the active iAssemblyMember QTY column only.&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-inline" image-alt="export bom.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1272205i45624CEECF3F26DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="export bom.png" alt="export bom.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ilyas&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 05:04:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/getting-iassembly-name-using-inventor-api/m-p/12268980#M18441</guid>
      <dc:creator>ilyas_adnm</dc:creator>
      <dc:date>2023-09-27T05:04:51Z</dc:date>
    </item>
  </channel>
</rss>

