<?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 Help-Need Code to Auto Rebuild when Assembly is Saved in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/12335442#M159568</link>
    <description>&lt;P&gt;Wanting to re-open this, attempting to do the same thing more or less.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What solutions did you land upon/was behaviour as expected? I'm currently running:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;Rebuild&lt;/SPAN&gt;()&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;To no success, unsure why that is the case.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2023 12:36:53 GMT</pubDate>
    <dc:creator>taylorjonesXGNK9</dc:creator>
    <dc:date>2023-10-27T12:36:53Z</dc:date>
    <item>
      <title>iLogic Help-Need Code to Auto Rebuild when Assembly is Saved</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8818851#M109808</link>
      <description>&lt;P&gt;Hey guys!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently started dipping my toes in to the iLogic coding in Inventor and I can't figure out how to get the active assembly to "Rebuild All" (including all components within the assembly) any time I save the assembly. These aren't huge assemblies as I have multiple layers to my models, but these are template assemblies that will be copied and resized for different conditions and I need certain aspects (like the bolted connections and links) to update automatically when someone who isn't me is trying to use these. The last thing we need is for someone to miss clicking rebuild and our fastener counts/assembly lengths to be off.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other rebuild triggers are an option (such as opening or placing the assembly within another assembly) but having it happen when it is saved is my preference. Also I am running Inventor 2019 in case that is relevant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 15:10:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8818851#M109808</guid>
      <dc:creator>kkruegerWZZH4</dc:creator>
      <dc:date>2019-05-28T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help-Need Code to Auto Rebuild when Assembly is Saved</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8818888#M109809</link>
      <description>&lt;P&gt;The Ilogic code to rebuild an assembly is simply&lt;/P&gt;&lt;PRE&gt;ThisDoc.Document.Rebuild()&lt;/PRE&gt;&lt;P&gt;I would recommend saving this as an external rule and setting up your assembly templates so that they have the rule set to trigger before saves. You can also set this trigger on existing documents.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_12.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/641503i5A47117D889D411A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_12.png" alt="Screenshot_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 15:22:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8818888#M109809</guid>
      <dc:creator>AdamAG99T</dc:creator>
      <dc:date>2019-05-28T15:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help-Need Code to Auto Rebuild when Assembly is Saved</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8818947#M109810</link>
      <description>&lt;P&gt;What is the reason you recommend saving it as an external rule rather than a rule in the document? Where would the external rule be saved? If it is on my desktop, wouldn't someone else who doesn't have the rule saved to their computer get an error when they try to use the assembly?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6045674"&gt;@AdamAG99T&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I would recommend saving this as an external rule and setting up your assembly templates so that they have the rule set to trigger before saves. You can also set this trigger on existing documents.&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;</description>
      <pubDate>Tue, 28 May 2019 15:48:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8818947#M109810</guid>
      <dc:creator>kkruegerWZZH4</dc:creator>
      <dc:date>2019-05-28T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help-Need Code to Auto Rebuild when Assembly is Saved</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8819086#M109811</link>
      <description>&lt;P&gt;If you're using this for multiple users then yes you could save it as a regular rule on the assembly template. The main benefit of using an external rule would be to make it easier to add to previously made documents, since you would just need to add the trigger instead of creating a new rule in each document as well as the trigger.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:39:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8819086#M109811</guid>
      <dc:creator>AdamAG99T</dc:creator>
      <dc:date>2019-05-28T16:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help-Need Code to Auto Rebuild when Assembly is Saved</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8825699#M109812</link>
      <description>&lt;P&gt;OK, so I ended up running into some issues in my overall model where the sub assemblies are placed-&lt;/P&gt;&lt;P&gt;Similar assemblies share some parts (small purchased parts such as clips that are the same regardless of where they are used) and they get into a cyclical Rebuild/Update/Save loop where it won't allow me to check in my overall because one sub-assembly will rebuild, making it so the other needs to be updated because of the shared parts, and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am taking a different approach that should work but I can't figure out why it wont.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Assembly_Length&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;Assembly_Length&lt;/SPAN&gt;

	&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;Rebuild&lt;/SPAN&gt;()
	
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code SHOULD rebuild if the parameter "Assembly_Length" changes, correct? I have a skeleton .ipt linked to the assembly, and this Assembly_Length is pulling the Length from the .ipt, so when I update the length of the skeleton and return to the Assembly, the Assembly_Length will change and the rebuild code should trigger.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out why this isn't working!! It seems so simple.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 13:37:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/8825699#M109812</guid>
      <dc:creator>kkruegerWZZH4</dc:creator>
      <dc:date>2019-05-31T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Help-Need Code to Auto Rebuild when Assembly is Saved</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/12335442#M159568</link>
      <description>&lt;P&gt;Wanting to re-open this, attempting to do the same thing more or less.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What solutions did you land upon/was behaviour as expected? I'm currently running:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;Rebuild&lt;/SPAN&gt;()&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;To no success, unsure why that is the case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 12:36:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-help-need-code-to-auto-rebuild-when-assembly-is-saved/m-p/12335442#M159568</guid>
      <dc:creator>taylorjonesXGNK9</dc:creator>
      <dc:date>2023-10-27T12:36:53Z</dc:date>
    </item>
  </channel>
</rss>

