<?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: (VBA) DerivedParameterTable LinkedParameters Error in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-derivedparametertable-linkedparameters-error/m-p/11621731#M29298</link>
    <description>&lt;P&gt;Unfortunelly it doesn't work Arthur. I have test it. But I knew it anyway. Dependants list holds only a list of a parameters which are using this particular parameter. In this case this is the parameter in the current document not that which it is linked to.&amp;nbsp; So, in my case the list have no items.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap01.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1152771i51BE4CA856F5C107/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snap01.png" alt="Snap01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 07:36:49 GMT</pubDate>
    <dc:creator>leszeko</dc:creator>
    <dc:date>2022-12-15T07:36:49Z</dc:date>
    <item>
      <title>(VBA) DerivedParameterTable LinkedParameters Error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-derivedparametertable-linkedparameters-error/m-p/11619203#M29296</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is a API bug in inventor. I can not get e value for ReferencedEntity of the linked parameter.&lt;/P&gt;&lt;P&gt;If for example i will link parameters of an ipt file and then I want to check value of the&amp;nbsp;ReferencedEntity of an any of the parameters then I'm getting an error. I have checked this on the last 3 versions of Inventor (2021, 2022, 2023). It's just not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to test it it's eanough to link an ipt file an try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Dim oPartDoc As partDocument&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Set oPartDoc = ThisApplication.ActiveDocument&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Dim oParam As DerivedParameter&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Set oParam = oPartDoc.ComponentDefinition.Parameters.DerivedParameterTables.Item(1).LinkedParameters.Item(1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Debug.Print oParam.Name&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Debug.Print oParam.ReferencedEntity.Name&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it any way to find referced parameter name since they are renamed if same name of the parameters exists allready? Like for exampe &lt;STRONG&gt;&lt;EM&gt;d0&lt;/EM&gt;&lt;/STRONG&gt; is reneamed to &lt;STRONG&gt;&lt;EM&gt;d0_1&lt;/EM&gt;&lt;/STRONG&gt; butif this name allready exist then it's renamed to &lt;EM&gt;&lt;STRONG&gt;d0_1_2&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 09:00:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-derivedparametertable-linkedparameters-error/m-p/11619203#M29296</guid>
      <dc:creator>leszeko</dc:creator>
      <dc:date>2022-12-14T09:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: (VBA) DerivedParameterTable LinkedParameters Error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-derivedparametertable-linkedparameters-error/m-p/11621043#M29297</link>
      <description>&lt;P&gt;use it this way:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oPartDoc As PartDocument
set oPartDoc = ThisApplication.ActiveDocument

Dim oParam As DerivedParameter
set oParam = oPartDoc.ComponentDefinition.Parameters.DerivedParameterTables.Item(1).LinkedParameters.Item(2)

MsgBox ( oParam.Name)
MsgBox( oParam.Dependents.Item(1).name)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Dec 2022 21:49:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-derivedparametertable-linkedparameters-error/m-p/11621043#M29297</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2022-12-14T21:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: (VBA) DerivedParameterTable LinkedParameters Error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-derivedparametertable-linkedparameters-error/m-p/11621731#M29298</link>
      <description>&lt;P&gt;Unfortunelly it doesn't work Arthur. I have test it. But I knew it anyway. Dependants list holds only a list of a parameters which are using this particular parameter. In this case this is the parameter in the current document not that which it is linked to.&amp;nbsp; So, in my case the list have no items.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap01.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1152771i51BE4CA856F5C107/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snap01.png" alt="Snap01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 07:36:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-derivedparametertable-linkedparameters-error/m-p/11621731#M29298</guid>
      <dc:creator>leszeko</dc:creator>
      <dc:date>2022-12-15T07:36:49Z</dc:date>
    </item>
  </channel>
</rss>

