<?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: Update an assembly rule from a part file in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6865658#M70053</link>
    <description>&lt;P&gt;i also do not understand what he is trying to do&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1991519"&gt;@RodrigoEiras&lt;/a&gt;&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you change parameters in a part, which updates the part model the part which is shown in the assembly will update accordingly, Without ilogic.&lt;/P&gt;
&lt;P&gt;if you will change parameters in the assembly which should also change the parameters in your part. you have to link you parameters in the asm with the parameters in the part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;'First ist the Parameter in you Part, second is the Parameter in the Assembly which should be the equal name&lt;BR /&gt;'You have to create the Parameter by your own in the assembly&lt;BR /&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"PartModel&lt;/SPAN&gt;&lt;SPAN&gt;:1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Parametername&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; Parametername&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2017 11:59:02 GMT</pubDate>
    <dc:creator>Ruffy85</dc:creator>
    <dc:date>2017-02-09T11:59:02Z</dc:date>
    <item>
      <title>Update an assembly rule from a part file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6863676#M70030</link>
      <description>&lt;P&gt;So I found a way to run a rule from the part level and that would be to open a new instance of the assembly and open the rule that way. &amp;nbsp;There has to be some other way to get the rule to trigger.&lt;/P&gt;&lt;P&gt;Simply put, there is a rule to change the placement of a brace in the sub-assembly. &amp;nbsp;When the part updates, it blows the brace out to the wrong spot. &amp;nbsp;To update it, I have to run the rule in the assembly again so that it can update the parameters it receives from the part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question: Is there a way to trigger a rule when a part in the assembly is updated? &amp;nbsp;The part is named the same as the assembly if that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 18:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6863676#M70030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-08T18:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update an assembly rule from a part file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6865539#M70051</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi briandaley,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not 100% sure to have understood you question properly, but if you are in the assembly you could run the rule in the component using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;RunRule&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;PartA:1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;ruleName&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you should be able to update the assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that what you were trying to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&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, 09 Feb 2017 11:04:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6865539#M70051</guid>
      <dc:creator>RodrigoEiras</dc:creator>
      <dc:date>2017-02-09T11:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Update an assembly rule from a part file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6865658#M70053</link>
      <description>&lt;P&gt;i also do not understand what he is trying to do&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1991519"&gt;@RodrigoEiras&lt;/a&gt;&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you change parameters in a part, which updates the part model the part which is shown in the assembly will update accordingly, Without ilogic.&lt;/P&gt;
&lt;P&gt;if you will change parameters in the assembly which should also change the parameters in your part. you have to link you parameters in the asm with the parameters in the part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;'First ist the Parameter in you Part, second is the Parameter in the Assembly which should be the equal name&lt;BR /&gt;'You have to create the Parameter by your own in the assembly&lt;BR /&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"PartModel&lt;/SPAN&gt;&lt;SPAN&gt;:1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Parametername&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; Parametername&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 11:59:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6865658#M70053</guid>
      <dc:creator>Ruffy85</dc:creator>
      <dc:date>2017-02-09T11:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Update an assembly rule from a part file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6865859#M70056</link>
      <description>&lt;P&gt;To clarify, I'm in the part environment to change the part. &amp;nbsp;In the assembly, I'm using that code to drive the parameters in the assembly but it doesn't update immediately.&lt;/P&gt;&lt;PRE&gt;Dim model As String = ThisDoc.Document.DisplayName &amp;amp; ".ipt"
Try
	radius = Parameter(model, "radius")
	ReverseInt = Parameter(model, "ReverseInt")
Catch
	MessageBox.Show("Model name does not match the assembly name","Z-Rib Placement Error")
	Return
End Try&lt;/PRE&gt;&lt;P&gt;This code won't update the parameters when I change the part file unless I return to the assembly and run the rule again. &amp;nbsp;I'm looking for a way to update this when the part updates.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 13:10:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6865859#M70056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-09T13:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update an assembly rule from a part file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6866202#M70065</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do this, I access the part through the ComponentOcurrence in the assembly. Something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Head:1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;d1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the parameters have been updated, if the assembly is not updated automatically, you can add a line to update it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Update the assembly&lt;/SPAN&gt;
&lt;SPAN&gt;InventorVb&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DocumentUpdate&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you save the assembly it will save the assembly and the modified parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This combination works fine for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 15:10:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6866202#M70065</guid>
      <dc:creator>RodrigoEiras</dc:creator>
      <dc:date>2017-02-09T15:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Update an assembly rule from a part file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6866635#M70071</link>
      <description>&lt;P&gt;Unfortunately I already had that in my assembly rule but it didn't work. &amp;nbsp;I added the rule to the Event Trigger to update before save and that seemed to help. &amp;nbsp;It's not a perfect solution but it works better than what it was before...&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 17:19:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-an-assembly-rule-from-a-part-file/m-p/6866635#M70071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-09T17:19:12Z</dc:date>
    </item>
  </channel>
</rss>

