<?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 iLogic rule to save triggerd parts individually in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796917#M58387</link>
    <description>&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Thanks again for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You seem to be a programmer or have a lot of experience with it and know how to do this. I am not a programmer and have no idea how to fix this or where to start.&amp;nbsp;Searches are fine and I may stumble onto something&amp;nbsp;that will work but don't have the time or inclination to become a programmer and start from scratch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll change from asking for help to what would it cost to get it done?&lt;/P&gt;&lt;P&gt;Not trying to be&amp;nbsp;antagonistic but&amp;nbsp;I need to get this resolved.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2015 04:43:20 GMT</pubDate>
    <dc:creator>phila</dc:creator>
    <dc:date>2015-09-01T04:43:20Z</dc:date>
    <item>
      <title>Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796250#M58371</link>
      <description>&lt;P&gt;I have an iLogic rule to run on IPT's and some IAM's after the file saves to a STEP FILES folder.&lt;/P&gt;&lt;P&gt;The upper assemblies typically do not have the trigger set to save as a STEP file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When in the context of an upper assembly, that does not have the trigger, and a save is done, the entire upper assembly is saved to a STEP file with the correct name of the lower level IPT/IAM that has a trigger. Unfortunately the STEP file contains the assembly not the individual part or respective assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works perfectly in the individual files but if I'm not careful, it overwrite the existing file with the assembly. Not good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think my problem, aside not knowing programming, is with the "Stepfilename = Thisdoc.path". Since I am in an upper assembly, it makes sense that would be the Thisdoc.path I'm in and not the individual file that has a trigger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000" size="2"&gt;&lt;FONT color="#800000" size="2"&gt;Stepfilename&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;ThisDoc&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;.&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;Path&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;amp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#008080" size="2"&gt;&lt;FONT color="#008080" size="2"&gt;"\STEP FILES\"&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;amp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;ThisDoc&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;.&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;FileName&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;False)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the rule to save each file, that has a trigger,&amp;nbsp;to their respective file and path?&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 17:53:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796250#M58371</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-08-31T17:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796293#M58372</link>
      <description>&lt;P&gt;Yes, this is expected iLogic behaviour;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The iLogic functionality is really only intended for Active Document use and thus, if doing more complex operations, the programming should be switched over to vba or vb.net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at the inventor programming help (that you can find through the question mark in the top right corner of the program) .&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 18:15:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796293#M58372</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-08-31T18:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796652#M58378</link>
      <description>&lt;P&gt;Not being a programmer, can this be done?&lt;/P&gt;&lt;P&gt;If done in&amp;nbsp;vba or vba.net, can it still be triggered?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 21:27:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796652#M58378</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-08-31T21:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796685#M58380</link>
      <description>Yes you can use vb.net and vb in a rule just like iLogic. Nothing special&lt;BR /&gt;is required. More functionality is enabled though.</description>
      <pubDate>Mon, 31 Aug 2015 21:51:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796685#M58380</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-08-31T21:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796740#M58381</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not being a programmer, what needs to change in the coding to get this to&amp;nbsp;function as I would like?&lt;/P&gt;&lt;P&gt;Are there examples of coding or parts of other code&amp;nbsp;that&amp;nbsp;I could use?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 22:55:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796740#M58381</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-08-31T22:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796742#M58382</link>
      <description>Just look at my previous posts or others for an idea</description>
      <pubDate>Mon, 31 Aug 2015 22:57:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796742#M58382</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-08-31T22:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796759#M58383</link>
      <description>&lt;P&gt;OK. Will do. Was hoping not to spend hours searching for it like I did with what I have.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 23:18:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796759#M58383</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-08-31T23:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796877#M58385</link>
      <description>&lt;P&gt;Well, I have&amp;nbsp;spent the last couple hours&amp;nbsp;searching for&amp;nbsp;something that could/would work to fix my code problem. No joy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably there, but, I don't know the answer to my question to&amp;nbsp;come up with&amp;nbsp;the right keywords to use when searching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A little help pointing me in the right direction would be most appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 03:13:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796877#M58385</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-09-01T03:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796878#M58386</link>
      <description>&lt;P&gt;API Help/Inventor forums:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ThisApplication.ActiveDocument.FullFileName&lt;/P&gt;&lt;P&gt;ThisApplication.Documents.Open("C:/Filenamehere.ipt, False)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;google "msdn + ..... "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;InStrRev&lt;/P&gt;&lt;P&gt;InStr&lt;/P&gt;&lt;P&gt;Len()&lt;/P&gt;&lt;P&gt;vb.net or vba introduction + subs and functions&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 03:18:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796878#M58386</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-09-01T03:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796917#M58387</link>
      <description>&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Thanks again for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You seem to be a programmer or have a lot of experience with it and know how to do this. I am not a programmer and have no idea how to fix this or where to start.&amp;nbsp;Searches are fine and I may stumble onto something&amp;nbsp;that will work but don't have the time or inclination to become a programmer and start from scratch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll change from asking for help to what would it cost to get it done?&lt;/P&gt;&lt;P&gt;Not trying to be&amp;nbsp;antagonistic but&amp;nbsp;I need to get this resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 04:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5796917#M58387</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-09-01T04:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5797580#M58404</link>
      <description>Well, try posting what you currently have and maybe some nice person on the forums or an autodesk employee will rewrite it in vba/vb.net for you.</description>
      <pubDate>Tue, 01 Sep 2015 13:19:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5797580#M58404</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-09-01T13:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5797950#M58408</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have. It works but&amp;nbsp;needs the file check so it would export the correct file not the assembly it is in. Could just exit if not in the same file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Start of iLogic code *******************************************&lt;/SPAN&gt;
    &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;query user&lt;/SPAN&gt;
&lt;SPAN&gt;question&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;MessageBox&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Show&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Is a STEP file needed for &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;iLogic Question&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MessageBoxButtons&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;YesNo&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MessageBoxIcon&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Question&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;set condition based on answer&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;question&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;vbNo&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;Exit Sub&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
        
        &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;check to see if in drawing&lt;/SPAN&gt;
        &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocumentType&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;kDrawingDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
            &lt;SPAN&gt;doc&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
            &lt;SPAN&gt;MsgBox&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;This iLogic rule will only run from a part or assembly&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;MsgBoxStyle&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Exclamation&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Document Type Error&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
            &lt;SPAN&gt;Exit Sub&lt;/SPAN&gt;
        &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; 
    
&lt;SPAN&gt;oPath&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Path&lt;/SPAN&gt;
&lt;SPAN&gt;oFolder&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oPath&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\STEP FILES&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; 


&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Check to see if in same file or different&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Is ThisDoc.FileName different from the Stepfilename needed?&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;if different, exit  if same = then next&lt;/SPAN&gt;


&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Check for the STEP folder and create it if it does not exist&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IO&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Directory&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Exists&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;oFolder&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;System&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IO&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Directory&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateDirectory&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;oFolder&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

  &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Delete Files from folder containing this file name&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;path&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Path&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\STEP FILES\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; 
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;foundFile&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;My&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Computer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileSystem&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GetFiles&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Microsoft&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;VisualBasic&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileIO&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SearchOption&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SearchAllSubDirectories&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; 
&lt;SPAN&gt;My&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Computer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileSystem&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DeleteFile&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;foundFile&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;oRevNum&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Revision Number&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;Stepfilename&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Path&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\STEP FILES\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Sdate&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;DateString&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp; " " &amp;amp; TimeString&lt;/SPAN&gt;

&lt;SPAN&gt;CurrentFile&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Stepfilename&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;oRevNum&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;.stp&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;  
 
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Get the STEP translator Add-In.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSTEPTranslator&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TranslatorAddIn&lt;/SPAN&gt;
&lt;SPAN&gt;oSTEPTranslator&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ApplicationAddIns&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ItemById&lt;/SPAN&gt; &lt;SPAN&gt;_&lt;/SPAN&gt;
&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;{90AF7F40-0C01-11D5-8E83-0010B541CD80}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oContext&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TranslationContext&lt;/SPAN&gt;
&lt;SPAN&gt;oContext&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateTranslationContext&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOptions&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;NameValueMap&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateNameValueMap&lt;/SPAN&gt;
 
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oSTEPTranslator&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;HasSaveCopyAsOptions&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt; &lt;SPAN&gt;_&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;oContext&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;oOptions&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;oOptions&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;ApplicationProtocolType&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;3&lt;/SPAN&gt;
    &lt;SPAN&gt;oContext&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Type&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;IOMechanismEnum&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;kFileBrowseIOMechanism&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oData&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DataMedium&lt;/SPAN&gt;
    &lt;SPAN&gt;oData&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateDataMedium&lt;/SPAN&gt;
    
    &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Set export name of STEP file&lt;/SPAN&gt;
    &lt;SPAN&gt;oData&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileName&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;currentFile&lt;/SPAN&gt;

&lt;SPAN&gt;oSTEPTranslator&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SaveCopyAs&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;oContext&lt;/SPAN&gt; &lt;SPAN&gt;_&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;oOptions&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;oData&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
 
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; End of export code ***********************************************&lt;/SPAN&gt;
 
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Ask user if they want to open the export folder&lt;/SPAN&gt;
&lt;SPAN&gt;OpenFolder&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;MessageBox&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Show&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Export successful! &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;_&lt;/SPAN&gt;
&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;- open containing folder now?&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Save2STEP&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;_&lt;/SPAN&gt;
&lt;SPAN&gt;MessageBoxButtons&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;YesNo&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;_&lt;/SPAN&gt;
&lt;SPAN&gt;MessageBoxIcon&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Question&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MessageBoxDefaultButton&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Button1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
 
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;OpenFolder&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;vbYes&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;Process&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Start&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;explorer.exe&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Path&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\STEP FILES\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; User says continue&lt;/SPAN&gt;
    &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
 
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; End of iLogic code **************************************************&lt;/SPAN&gt;
 &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 15:54:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5797950#M58408</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-09-01T15:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5798099#M58409</link>
      <description>Do you have a separate folder structure for each assembly?&lt;BR /&gt;ie; Assembly 1 Folder\Assembly 1 parts&lt;BR /&gt;Assembly 1 Folder\Sub Assembly 1 Folder\ Sub Assembly Parts&lt;BR /&gt;&lt;BR /&gt;I'm trying to figure out what the problem is from your first post..</description>
      <pubDate>Tue, 01 Sep 2015 17:06:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5798099#M58409</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-09-01T17:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5798155#M58410</link>
      <description>&lt;P&gt;There are instances where an assembly from&amp;nbsp;the Common Parts&amp;nbsp;folder&amp;nbsp;is used on the&amp;nbsp;different models of the product. They are not in a library like a switch or knob. If changed, it is for all model of the product. If they become unique, they get a new part number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Common Parts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STEP Files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STEP files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I edit a part within the context of an assembly then finish edit without saving,&amp;nbsp;then change something in the assembly&amp;nbsp;and do a save, the standard dialog comes up asking if I want to save both files.&lt;/P&gt;&lt;P&gt;I click ok and both files are saved. The sub part which has the trigger to save as STEP when saved, gets run,&amp;nbsp;which is fine but it saves the part with all the parts of the assembly not that part itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inventor sees the assembly as the basis for the STEP file not the part being triggered and creates the STEP file with the correct name of the triggered file&amp;nbsp;but with all the assembly parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 17:37:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5798155#M58410</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-09-01T17:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5798679#M58411</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/107866"&gt;@phila&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;There are instances where an assembly from&amp;nbsp;the Common Parts&amp;nbsp;folder&amp;nbsp;is used on the&amp;nbsp;different models of the product. They are not in a library like a switch or knob. If changed, it is for all model of the product. If they become unique, they get a new part number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Common Parts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STEP Files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STEP files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I edit a part within the context of an assembly then finish edit without saving,&amp;nbsp;then change something in the assembly&amp;nbsp;and do a save, &lt;STRONG&gt;the standard dialog comes up asking if I want to save both files.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I click ok and both files are saved. The sub part which has the trigger to save as STEP when saved, gets run,&amp;nbsp;which is fine but it saves the part with all the parts of the assembly not that part itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inventor sees the assembly as the basis for the STEP file not the part being triggered and creates the STEP file with the correct name of the triggered file&amp;nbsp;but with all the assembly parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you want it to save both files from the assembly if you editted a part in place, and not only that but to asave it down to step and overwrite the old version in the appropriate folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, has the program also created a STEP folder in the wrong location, and do you specifically want the old versions to be deleted forever, or would you rather have them go to the recycle bin?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:41:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5798679#M58411</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-09-01T20:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5798825#M58414</link>
      <description>&lt;P&gt;The way it is working it saves both files then creates the step file of the triggered file. The assembly does not have a trigger. Only want STEP files created on triggered files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it can be done, yes, save the triggered part to the appropriate&amp;nbsp;STEP FILES folder&amp;nbsp;even if it is not in the same folder as the assembly being worked on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has not created a folder in the wrong place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Delete is fine..&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 22:23:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5798825#M58414</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-09-01T22:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5801000#M58443</link>
      <description>&lt;P&gt;I have been looking at this some more. It seems everything works as it should until the last line where the file is created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000" size="2"&gt;oSTEPTranslator&lt;/FONT&gt;&lt;FONT size="2"&gt;.&lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;SaveCopyAs&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" size="2"&gt;ThisApplication.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#800000" size="2"&gt;ActiveDocument&lt;/FONT&gt;&lt;FONT size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;oContext&lt;/FONT&gt; &lt;FONT color="#800000" size="2"&gt;_&lt;/FONT&gt;&lt;FONT size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;&lt;FONT color="#800000" size="2"&gt;oOptions&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;&lt;FONT color="#800000" size="2"&gt;oData&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;At this point the translator is using&amp;nbsp;ActiveDocument as the basis.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Is there a way to have it use the document with the trigger instead?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 04:01:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5801000#M58443</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-09-03T04:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5801588#M58448</link>
      <description>&lt;P&gt;So if you were to put a messagebox right after CurrentFile&lt;/P&gt;&lt;P&gt;ie; MsgBox(CurrentFile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it displays the correct filename for what you want the file to be?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 13:22:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5801588#M58448</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-09-03T13:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5801891#M58452</link>
      <description>&lt;P&gt;I added this to the top of the rule. I added it after posting the original rule:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Start of iLogic code *******************************************&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;FONT color="#808080" size="2"&gt;&lt;FONT color="#808080" size="2"&gt;'query user&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000" size="2"&gt;&lt;FONT color="#800000" size="2"&gt;question&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;MessageBox&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;.&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;Show&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#008080" size="2"&gt;&lt;FONT color="#008080" size="2"&gt;"Is a STEP file needed for "&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;amp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;ThisDoc&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;.&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;FileName&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;False&lt;STRONG&gt;)&lt;/STRONG&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="2"&gt;&lt;FONT color="#008080" size="2"&gt;"iLogic Question"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;&lt;FONT color="#800000" size="2"&gt;MessageBoxButtons&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;.&lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;&lt;FONT color="#800000" size="2"&gt;YesNo&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;&lt;FONT color="#800000" size="2"&gt;MessageBoxIcon&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;.&lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;&lt;FONT color="#800000" size="2"&gt;Question&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;'set condition based on answer&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800000" size="2"&gt;&lt;FONT color="#800000" size="2"&gt;question&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; vbNo &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Exit Sub&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;STRONG&gt;End&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;FONT size="2"&gt;This gives me the option to say no if I am in an assembly that does not have a trigger. Just have to remember what assembly I'm in.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;FONT size="2"&gt;The two parts that are this assembly&amp;nbsp;have triggers to create&amp;nbsp;a step file of each individual part. The assembly it self does not have a trigger. No STEP needed.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;FONT size="2"&gt;Each file with triggers opens the dialog box with their respective part numbers. Good to this point&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;FONT size="2"&gt;If I click no, the rule stops, no STEP created. The second box opens, click no again.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;FONT size="2"&gt;If I click yes to both or just one, it creates the STEP file with the entire assembly&amp;nbsp;with the&amp;nbsp;respective file names in the dialog boxes. &amp;nbsp;Both parts and all the hardware. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;FONT size="2"&gt;When I open either STEP file created, it is of the entire assembly not the single&amp;nbsp;part.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 15:22:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5801891#M58452</guid>
      <dc:creator>phila</dc:creator>
      <dc:date>2015-09-03T15:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting iLogic rule to save triggerd parts individually</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5801926#M58454</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand you correctly, you'll just have to iterate through the parts in the assembly and save them to STEP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a blog post on assemblies and components. In your case you'd just have to iterate through all the referenced part documents of the assembly:&amp;nbsp;&lt;SPAN&gt;oAsmDoc.AllReferencedDocuments&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html" target="_self"&gt;http://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;Cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 15:32:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-ilogic-rule-to-save-triggerd-parts-individually/m-p/5801926#M58454</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2015-09-03T15:32:33Z</dc:date>
    </item>
  </channel>
</rss>

