<?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 rule to change the value of the same parameter of multiple components in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6479939#M107692</link>
    <description>Hi Mika, In a previous life I created an iLogic rule that runs through the&lt;BR /&gt;entire assembly (all levels) and if it finds any part parameters that have&lt;BR /&gt;the same name as an assembly parameter, it sets the value of the part&lt;BR /&gt;parameter equal to the assembly parameter. I don't have the link to hand,&lt;BR /&gt;but if you search on Cadline community for 'iLogic parameters assembly' it&lt;BR /&gt;should come up. Luke</description>
    <pubDate>Fri, 05 Aug 2016 07:15:37 GMT</pubDate>
    <dc:creator>LukeDavenport</dc:creator>
    <dc:date>2016-08-05T07:15:37Z</dc:date>
    <item>
      <title>iLogic rule to change the value of the same parameter of multiple components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6479906#M107691</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to do an assembly with multiple iLogic component. In every component I want to&amp;nbsp;place to the assembly is about 20 parameter&amp;nbsp;that needs to be driven by the assembly parameters. I have named parameters in every component same way for example&amp;nbsp;"Module_lenght", "Width_1", "Width_2" and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that there is the possibility to choose whether the parameters is driven by the assembly or by the user when user is placing the component. Hence there is over twenty components in the assembly it would be great if there is a rule to change all the parameters at the same time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that there is a very simple rule to change parameters of one component to match the assembly parameters. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Window_module: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;Module_lenght&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Module_lenght&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If I place new "Window_module" to the assembly, I have to do new line to the rule:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Window_module:2&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Module_lenght&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Module_lenght&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to chance component parameter "Module_lenght" to assembly parameter for all the components that I have placed whit one rule?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be appreciated. I'm using Inventor 2015.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mika&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:53:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6479906#M107691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-05T06:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule to change the value of the same parameter of multiple components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6479939#M107692</link>
      <description>Hi Mika, In a previous life I created an iLogic rule that runs through the&lt;BR /&gt;entire assembly (all levels) and if it finds any part parameters that have&lt;BR /&gt;the same name as an assembly parameter, it sets the value of the part&lt;BR /&gt;parameter equal to the assembly parameter. I don't have the link to hand,&lt;BR /&gt;but if you search on Cadline community for 'iLogic parameters assembly' it&lt;BR /&gt;should come up. Luke</description>
      <pubDate>Fri, 05 Aug 2016 07:15:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6479939#M107692</guid>
      <dc:creator>LukeDavenport</dc:creator>
      <dc:date>2016-08-05T07:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule to change the value of the same parameter of multiple components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6479975#M107693</link>
      <description>&lt;P&gt;Hi Luke and thank you for your answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I came up with the code that works just after I had posted my question.&amp;nbsp;Thanks for &lt;A href="https://forums.autodesk.com/t5/inventor-general-discussion/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6478245#M607507" target="_self"&gt;ThomasB44&lt;/A&gt;&amp;nbsp;for the link he gave to me (when I first posted my question to the wrong section of the forum) and for the &lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-try-catch-w-parameters/m-p/5777974/highlight/true#M58106" target="_self"&gt;APatterson&amp;nbsp;1&lt;/A&gt;&amp;nbsp;for the code. I didn't really understand the code first but after studying it makes sense now.&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;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oAsmCompDef&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;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Iterate through all occurrences&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oAsmCompDef&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;

&lt;SPAN&gt;Try&lt;/SPAN&gt;

&lt;SPAN&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;oOcc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Name&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Module_lenght&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Module_lenght&lt;/SPAN&gt;

&lt;SPAN&gt;Catch&lt;/SPAN&gt;

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;

&lt;SPAN&gt;Next&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;Module_lenght was updated.&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;I did although find almost the same code from the Cadline community. So I thank you for your help. It's amazing what one can do with the Inventor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mika&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 07:53:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6479975#M107693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-05T07:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule to change the value of the same parameter of multiple components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6479988#M107694</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Mika,&lt;/P&gt;&lt;P&gt;That code you posted will only do the top level assembly components (and obviously only work with the single parameter name you mention).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't want those limitations, the&amp;nbsp;iLogic code below will automatically drive any part parameters with the same name as an assembly parameter (excluding non-renamed ‘d0’, ‘d1’, ‘d2’ etc parameters) in all levels of the assembly - I'll post it here as others may also find it useful.&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub Main DriveAllAssemblyParams&lt;BR /&gt;' Set reference to active document.&lt;BR /&gt;'check this file is an assembly&lt;BR /&gt;doc = ThisDoc.ModelDocument&lt;BR /&gt;If doc.DocumentType = kPartDocumentObject Then&lt;BR /&gt;MessageBox.Show("This rule can only be run in an assembly file!", "Cadline iLogic")&lt;BR /&gt;Return&lt;BR /&gt;End If&lt;BR /&gt;Dim oDoc As AssemblyDocument = ThisApplication.ActiveDocument&lt;BR /&gt;Dim oDef As AssemblyComponentDefinition = oDoc.ComponentDefinition&lt;BR /&gt;Dim oParam As Parameter&lt;BR /&gt;Dim oParams As Parameters = oDef.Parameters&lt;BR /&gt;Dim oModParams As ModelParameters = oParams.ModelParameters&lt;BR /&gt;Dim oRefParams As ReferenceParameters = oParams.ReferenceParameters&lt;BR /&gt;Dim oUserParams As UserParameters = oParams.UserParameters&lt;BR /&gt;Dim oCompOcc As Inventor.ComponentOccurrence&lt;BR /&gt;' Create list of assembly parameters. Note this will add ALL&lt;BR /&gt;' User parameters, table (spreadsheet) parameters, and derived&lt;BR /&gt;' parameters to the list for matching. Only renamed model and ref&lt;BR /&gt;' parameters will be added&lt;BR /&gt;Dim ParamsArray As New ArrayList&lt;BR /&gt;For Each oParam In oParams&lt;BR /&gt;If oParam.ParameterType = 11524 _ ' User parameters&lt;BR /&gt;OrElse oParam.ParameterType = 11523 _ ' Table parameters&lt;BR /&gt;OrElse oParam.ParameterType = 11525 _ ' Derived parameters&lt;BR /&gt;OrElse oParam.Renamed = True Then ' Renamed model/ref parameters&lt;BR /&gt;ParamsArray.Add(oParam)&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;'---------------------------------&lt;BR /&gt;For Each oCompOcc In oDef.Occurrences&lt;BR /&gt;If oCompOcc.Suppressed = False Then&lt;BR /&gt;Compcount = oCompOcc.Name.Substring(oCompOcc.Name.LastIndexOf(":")+1)&lt;BR /&gt;If IsNumeric(Compcount) = False OrElse Compcount = 1 Then&lt;BR /&gt;For Each oParam In oCompOcc.Definition.Parameters&lt;BR /&gt;If oParam.ParameterType = 11524 OrElse oParam.Renamed = True Then&lt;BR /&gt;'MessageBox.Show("Adding Parameter " &amp;amp; oSubCompParam.Name &amp;amp; _&lt;BR /&gt;'" from component " &amp;amp; oSubCompOcc.Name, "Title")&lt;BR /&gt;Call CompareParams(oParam,ParamsArray)&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;' Check if child occurences exist&lt;BR /&gt;If oCompOcc.SubOccurrences.Count &amp;gt; 0 Then&lt;BR /&gt;Call processAllSubOcc(oCompOcc,ParamsArray)&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;RuleParametersOutput()&lt;BR /&gt;InventorVb.DocumentUpdate()&lt;BR /&gt;ThisApplication.ActiveView.Update()&lt;BR /&gt;End Sub&lt;BR /&gt;' Sub function to traverse through the entire assembly tree recursively&lt;BR /&gt;Sub processAllSubOcc(ByVal oCompOcc As ComponentOccurrence, _&lt;BR /&gt;ByVal ParamsArray As ArrayList)&lt;BR /&gt;Dim oSubCompParam As Parameter&lt;BR /&gt;Dim oSubCompOcc As ComponentOccurrence&lt;BR /&gt;For Each oSubCompOcc In oCompOcc.SubOccurrences&lt;BR /&gt;If oSubCompOcc.Suppressed = False Then&lt;BR /&gt;Compcount2 = oSubCompOcc.Name.Substring(oSubCompOcc.Name.LastIndexOf(":")+1)&lt;BR /&gt;If IsNumeric(Compcount2) = False OrElse Compcount2 = 1 Then&lt;BR /&gt;For Each oSubCompParam In oSubCompOcc.Definition.Parameters&lt;BR /&gt;If oSubCompParam.ParameterType = 11524 OrElse _&lt;BR /&gt;oSubCompParam.Renamed = True Then&lt;BR /&gt;'MessageBox.Show("Adding Parameter " &amp;amp; oSubCompParam.Name &amp;amp; _&lt;BR /&gt;'" from component " &amp;amp; oSubCompOcc.Name, "Title")&lt;BR /&gt;Call CompareParams(oSubCompParam,ParamsArray)&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;' Check if child exists&lt;BR /&gt;If oSubCompOcc.SubOccurrences.Count &amp;gt; 0 Then&lt;BR /&gt;Call processAllSubOcc(oSubCompOcc,ParamsArray)&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;End Sub&lt;BR /&gt;' Sub function to change parameter value if matches asm name&lt;BR /&gt;Sub CompareParams(ByVal Param As Parameter, _&lt;BR /&gt;ByVal ParamsArray As ArrayList)&lt;BR /&gt;For Each a As Parameter In ParamsArray&lt;BR /&gt;If Param.Name = a.Name AndAlso Not Param.Value = a.Value Then&lt;BR /&gt;Param.Value = a.Value&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;End Sub&lt;BR /&gt;'&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 07:59:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6479988#M107694</guid>
      <dc:creator>LukeDavenport</dc:creator>
      <dc:date>2016-08-05T07:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule to change the value of the same parameter of multiple components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6480154#M107695</link>
      <description>&lt;P&gt;Thank you Luke. I really don't know what to say. &amp;nbsp;It's a little bit more complex than I expected but it really does the trick. I still managed to brake it somehow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is that it doesn't update all of the components that I have placed in the assembly. It worked fine when I placed two Window_module to the assembly at the same time. They were named as Window_module:1 and Window_module:2. I then placed the third Window_module to the assembly and when I tried to change the parameter it only updated to the first two Window_modules. I don't see where the problem is. Do you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mika&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 10:22:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6480154#M107695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-05T10:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule to change the value of the same parameter of multiple components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6480169#M107696</link>
      <description>&lt;P&gt;Hi Mika,&lt;/P&gt;&lt;P&gt;It looks like you might have found a bug in the code. Haven't got time to check it now, but you could try deleting from the original code the red lines below - that might work.&lt;/P&gt;&lt;P&gt;Good luck!&lt;BR /&gt;Luke&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dim oSubCompOcc As ComponentOccurrence&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For Each oSubCompOcc In oCompOcc.SubOccurrences&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If oSubCompOcc.Suppressed = False Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Compcount2 = oSubCompOcc.Name.Substring(oSubCompOcc.Name.LastIndexOf(":")+1)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;If IsNumeric(Compcount2) = False OrElse Compcount2 = 1 Then&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;For Each oSubCompParam In oSubCompOcc.Definition.Parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If oSubCompParam.ParameterType = 11524 OrElse _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;oSubCompParam.Renamed = True Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'MessageBox.Show("Adding Parameter " &amp;amp; oSubCompParam.Name &amp;amp; _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'" from component " &amp;amp; oSubCompOcc.Name, "Title")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Call CompareParams(oSubCompParam,ParamsArray)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;' Check if child exists&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If oSubCompOcc.SubOccurrences.Count &amp;gt; 0 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Call processAllSubOcc(oSubCompOcc,ParamsArray)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;End If&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 10:36:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6480169#M107696</guid>
      <dc:creator>LukeDavenport</dc:creator>
      <dc:date>2016-08-05T10:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule to change the value of the same parameter of multiple components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6480292#M107697</link>
      <description>&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the answer, I appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eliminating those lines didn't work. I'm placing components as iLogic component because there is other (key)parameters that I'd like to change when I'm placing the component. Could it cause the bug?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great if you can you explain what happens in the "Compcount2" definition. I don't get how the number of components is counted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mika&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 11:57:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6480292#M107697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-05T11:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule to change the value of the same parameter of multiple components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6500356#M107698</link>
      <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have troubles to get the parameters right. I thought that I have solved this problem but I was wrong. I thought that if I make a rule in the sub-assembly that defines that the parameters of the parts in that sub-assembly is controlled by the parameters of the sub-assembly and then if I run a rule in the final assembly that defines that the parameters of the sub-assembly is controlled by the parameters of the final assembly everything should be just fine. Apparently the rule of the sub-assembly doesn't apply in the final assembly. I hope that my explanation clears things out.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Rules.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/263600iAA23F191748DED1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rules.png" alt="Rules.png" /&gt;&lt;/span&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;&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;&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;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea how to make this happen? I would use Luke's code but there is something wrong with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mika&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 12:38:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6500356#M107698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-15T12:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic rule to change the value of the same parameter of multiple components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6500577#M107699</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to solve it out.&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;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&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;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCompOcc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;S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SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This changes only two parameter so I have to write more lines but that's easy to do. I had to use MakePath-command because the names of the parts in the sub-assemblies are the same. I guess that identifies which parameter we are changing. Thanks for Luke. Your code was the key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Mika&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 14:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-rule-to-change-the-value-of-the-same-parameter-of/m-p/6500577#M107699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-15T14:01:52Z</dc:date>
    </item>
  </channel>
</rss>

