<?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: Requesting an iLogic code for exporting step and iges files in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/requesting-an-ilogic-code-for-exporting-step-and-iges-files/m-p/11608603#M146278</link>
    <description>&lt;P&gt;Examples of translaters are found on the website:&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=TranslatorAddIn4_Sample" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=TranslatorAddIn4_Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or in the programming help within Inventor.&lt;/P&gt;&lt;P&gt;Top right you see a question mark, if you press the small down arrow next to it.&lt;/P&gt;&lt;P&gt;Then go: Help --&amp;gt; Programming Help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Inventor Help you see: Sample Programs --&amp;gt; Translators --&amp;gt; Export --&amp;gt; Export STEP &amp;amp; Export IGES&lt;/P&gt;&lt;P&gt;I could just copy paste that here, but its best to browse it, useful for a lot of things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To go through a model I often check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html" target="_blank"&gt;https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use that code and check if the object is a assembly or part, and see if its a sub assembly or sub sub assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you can make an array to store which documents you already processed and skip those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Definition&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;fullfilename&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 07:50:59 GMT</pubDate>
    <dc:creator>Cadkunde.nl</dc:creator>
    <dc:date>2022-12-09T07:50:59Z</dc:date>
    <item>
      <title>Requesting an iLogic code for exporting step and iges files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/requesting-an-ilogic-code-for-exporting-step-and-iges-files/m-p/11608518#M146274</link>
      <description>&lt;P&gt;I was wondering if someone could help me with a iLogic code for exporting .step and .iges files from an assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm looking to do is this: (I don't mind paying if it works properly)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to first export the entire assembly as both a .stp and .igs file(s), but I also want to then have each sub-assembly created as a .stp and igs. file(s), as well as every individual part, contained in the assembly/sub-assemblies and I'd like the export to prompt a folder location and creation with the main folder being saved as the "Top Level Assy. name_Exports" and I'd like the exported .stp files to go into a subfolder labeled "step" and the exported iges files to be added to a subfolder called "step"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(see example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the below example, there is a top-level assembly, 3 loose parts, and two sub-assemblies, one made up of 3 parts and the other made up of 9 parts.&lt;/P&gt;&lt;P&gt;So when the export is run, there would be 18 step files and 18 iges files&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="chris_0-1670569131898.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1150391i948BC45C2553316C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chris_0-1670569131898.png" alt="chris_0-1670569131898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:46:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/requesting-an-ilogic-code-for-exporting-step-and-iges-files/m-p/11608518#M146274</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2022-12-09T14:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting an iLogic code for exporting step and iges files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/requesting-an-ilogic-code-for-exporting-step-and-iges-files/m-p/11608603#M146278</link>
      <description>&lt;P&gt;Examples of translaters are found on the website:&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=TranslatorAddIn4_Sample" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=TranslatorAddIn4_Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or in the programming help within Inventor.&lt;/P&gt;&lt;P&gt;Top right you see a question mark, if you press the small down arrow next to it.&lt;/P&gt;&lt;P&gt;Then go: Help --&amp;gt; Programming Help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Inventor Help you see: Sample Programs --&amp;gt; Translators --&amp;gt; Export --&amp;gt; Export STEP &amp;amp; Export IGES&lt;/P&gt;&lt;P&gt;I could just copy paste that here, but its best to browse it, useful for a lot of things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To go through a model I often check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html" target="_blank"&gt;https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use that code and check if the object is a assembly or part, and see if its a sub assembly or sub sub assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you can make an array to store which documents you already processed and skip those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Definition&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;fullfilename&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 07:50:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/requesting-an-ilogic-code-for-exporting-step-and-iges-files/m-p/11608603#M146278</guid>
      <dc:creator>Cadkunde.nl</dc:creator>
      <dc:date>2022-12-09T07:50:59Z</dc:date>
    </item>
  </channel>
</rss>

