<?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: iLogic Automate Assemblies. Quick guide + snippets in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/9017695#M74954</link>
    <description>&lt;P&gt;Dear&amp;nbsp;@Anonymous,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for explaining the code. I will try and test it on my parts today and will ask you some more questions. I hope you don't mind me keep asking you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 21:58:52 GMT</pubDate>
    <dc:creator>sam</dc:creator>
    <dc:date>2019-09-10T21:58:52Z</dc:date>
    <item>
      <title>iLogic Automate Assemblies. Quick guide + snippets</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/8846857#M74949</link>
      <description>&lt;P&gt;Since I got some positive feedback on my last post I desided to update the guide a little bit with adding some descriptions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also changed snippet 3 to detect any file containing whatever you want to detect in the name and return the occurance name as a string to use in the coding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Containing:&lt;/P&gt;&lt;P&gt;1: Dividing lengths equal with a maximum length&lt;/P&gt;&lt;P&gt;2: Dividing length into standard parts with a variable length&lt;/P&gt;&lt;P&gt;3: For each component with “” in the name&lt;/P&gt;&lt;P&gt;4: Adding parts in a loop&lt;/P&gt;&lt;P&gt;5: Creating and Saving parts with unique part identities based on parameters&lt;/P&gt;&lt;P&gt;6: Main assembly replace unique parts with the created parts in 5&lt;/P&gt;&lt;P&gt;7: Call rules subassembly and parts stand alone&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 11:41:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/8846857#M74949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T11:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Automate Assemblies. Quick guide + snippets</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/8846860#M74950</link>
      <description>&lt;P&gt;Just a reply to accept so people don't get confused.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 11:42:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/8846860#M74950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T11:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Automate Assemblies. Quick guide + snippets</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/9015119#M74951</link>
      <description>&lt;P&gt;Very helpful document.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please explain rule number 4 (Adding parts in a loop) in a little bit more detail?&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 22:41:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/9015119#M74951</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2019-09-09T22:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Automate Assemblies. Quick guide + snippets</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/9015549#M74952</link>
      <description>&lt;P&gt;Ofcourse anything in particular that you don't understand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thank you for the reply.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 05:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/9015549#M74952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-10T05:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Automate Assemblies. Quick guide + snippets</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/9017294#M74953</link>
      <description>&lt;P&gt;So here's a little run down of snippet 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first of all I used snippet 1 to determine the length and amount of parts i wanted to place.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Double A will be the amount of parts and B the total length of the parts after this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Then I used a C for the amount of placed parts through the code. assuming you have always your first part placed, and G for the count of how many relationships i've placed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;After that i put in a repeating loop for when the placed parts are less than the amount of parts calculated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;(Do While C &amp;lt; A)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Loop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next used some variables to update the following, and don't forget to turn parameters.quiet to true&lt;/P&gt;&lt;P&gt;D as double for the to be placed part, C is the amount of parts placed so to use it in a loop it should be +1 for the part that's going to be placed down in the loop.&lt;/P&gt;&lt;P&gt;Then E as String = C. This is to use C in the coding for component.and Constrains.AddFlush (will be reverenced as E)&lt;/P&gt;&lt;P&gt;And F as String = D for the same reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I used Test1 for the filepath of the part i want to place (choose your own name = "filepath")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that I used 3 times Constraints.AddFlush to constraint the parts with the plains.&lt;/P&gt;&lt;P&gt;I did this 2 times to line up the parts and 1 time to place the parts away from each other with the calculated length (B) in snippet 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it starts with Components Add. so it &amp;nbsp;will each time add a component when C (the amount placed) &amp;lt; A (the amount needed)&lt;/P&gt;&lt;P&gt;Here i reverenced to:&lt;/P&gt;&lt;P&gt;"Test1:" &amp;amp; D (this is for the to be placed partname and reverence for inventor) so each time this will run Test1:1, Test1:2, Test1:3 excetra.&lt;/P&gt;&lt;P&gt;Test1 (reverence to the filepath)&lt;/P&gt;&lt;P&gt;The rest is standard from the snippet in Ilogic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code follows up with a constraint for the distance wich will be B on the XY Plane and 2 constrains to line up the other plaines. (Constrains.AddFlush)&lt;/P&gt;&lt;P&gt;Here's a little rundown of how I did this. and the non moving planes.&lt;/P&gt;&lt;P&gt;"Flush" &amp;amp; G (for the updated flushcount. This will loop infinite.)&lt;/P&gt;&lt;P&gt;"Test1:" &amp;amp; F (This will access the just placed part in the loop)&lt;/P&gt;&lt;P&gt;"Test1:" &amp;amp; E (This will access the previous placed part in the loop)&lt;/P&gt;&lt;P&gt;offset := B (will mean that the constraint will be moved on the planes with the calculated length in snippet 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After Each constraint I updated G&lt;/P&gt;&lt;P&gt;G = G + 1 (so the constraints get their own identity number)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After each loop I updated C&lt;/P&gt;&lt;P&gt;C = C + 1 (To update the amount of parts I placed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note:&lt;/P&gt;&lt;P&gt;Test1 is the reverence to the filepath and is brown in the coding.&lt;/P&gt;&lt;P&gt;"Test1:" is the filename of the part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did my best to explain it in a short way, if you have any further questions about this code feel free to ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 17:59:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/9017294#M74953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-10T17:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Automate Assemblies. Quick guide + snippets</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/9017695#M74954</link>
      <description>&lt;P&gt;Dear&amp;nbsp;@Anonymous,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for explaining the code. I will try and test it on my parts today and will ask you some more questions. I hope you don't mind me keep asking you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 21:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automate-assemblies-quick-guide-snippets/m-p/9017695#M74954</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2019-09-10T21:58:52Z</dc:date>
    </item>
  </channel>
</rss>

