<?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 Revision Cell &amp;amp; Derived Parameter in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/revision-cell-amp-derived-parameter/m-p/7168702#M73010</link>
    <description>&lt;P&gt;I am having some issues trying to set a parameter to Included from a derived part.&amp;nbsp;&amp;nbsp; The following runs without error, and I can put a watch on oDerivedPartDef.Definition.Parameters.Item("Plate_6_Thk").IncludeEntity, and it never changes from False to True.&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also Is there no way to change a Revision Cell to or from Static?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub Derived()

Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oDerivedPartDef As DerivedPartComponent
Set oDerivedPartDef = oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(1)

oDerivedPartDef.Definition.Parameters.Item("Plate_6_Thk").IncludeEntity = True
If Err Then Stop

End Sub&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Jun 2017 18:30:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-21T18:30:45Z</dc:date>
    <item>
      <title>Revision Cell &amp; Derived Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/revision-cell-amp-derived-parameter/m-p/7168702#M73010</link>
      <description>&lt;P&gt;I am having some issues trying to set a parameter to Included from a derived part.&amp;nbsp;&amp;nbsp; The following runs without error, and I can put a watch on oDerivedPartDef.Definition.Parameters.Item("Plate_6_Thk").IncludeEntity, and it never changes from False to True.&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also Is there no way to change a Revision Cell to or from Static?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub Derived()

Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oDerivedPartDef As DerivedPartComponent
Set oDerivedPartDef = oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(1)

oDerivedPartDef.Definition.Parameters.Item("Plate_6_Thk").IncludeEntity = True
If Err Then Stop

End Sub&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Jun 2017 18:30:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/revision-cell-amp-derived-parameter/m-p/7168702#M73010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T18:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Revision Cell &amp; Derived Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/revision-cell-amp-derived-parameter/m-p/7173042#M73054</link>
      <description>&lt;P&gt;It's somthing really stupid.. you must set back the definition.. struggled with this also for a while &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@F982DDE76110C67DBDB6AF220B48480A/emoticons/1f604.png" alt=":grinning_face_with_smiling_eyes:" title=":grinning_face_with_smiling_eyes:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oDerivedPartDef As DerivedPartComponent
Set oDerivedPartDef = oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(1)

oDerivedPartDef.Definition.Parameters.Item("Plate_6_Thk").IncludeEntity = True

&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(1).Definition = oDerivedPartDef&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2017 07:42:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/revision-cell-amp-derived-parameter/m-p/7173042#M73054</guid>
      <dc:creator>Jef_E</dc:creator>
      <dc:date>2017-06-23T07:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Revision Cell &amp; Derived Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/revision-cell-amp-derived-parameter/m-p/7182496#M73105</link>
      <description>&lt;P&gt;Thanks Jef,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did have to change it a bit to get it to work, and I probably still don't have it quite right since it throws an error.&amp;nbsp; I will look into it more next time I need to do a bunch of files.&amp;nbsp;&amp;nbsp; This is what I ended up with though.&lt;/P&gt;&lt;PRE&gt;Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oDerivedPartDef As DerivedPartUniformScaleDef

Set oDerivedPartDef = oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(1).Definition

oDerivedPartDef.Parameters.Item("Plate_6_Thk").IncludeEntity = True
oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(1).Definition = oDerivedPartDef
If Err Then Stop&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Jun 2017 14:58:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/revision-cell-amp-derived-parameter/m-p/7182496#M73105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T14:58:03Z</dc:date>
    </item>
  </channel>
</rss>

