<?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 Get Parameter value from parent in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544490#M261</link>
    <description>&lt;P&gt;HI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to get a parameter value from parent assembly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Parent assembly has the parameter PROJECT_NAME= ProjectABC&lt;/P&gt;
&lt;P&gt;I have the same parameter on the parts "PROJECT_NAME", and I want to populate it with the value from the parent assembly "ProjectABC".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 11:19:48 GMT</pubDate>
    <dc:creator>hdasilva</dc:creator>
    <dc:date>2018-04-11T11:19:48Z</dc:date>
    <item>
      <title>Get Parameter value from parent</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544490#M261</link>
      <description>&lt;P&gt;HI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to get a parameter value from parent assembly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Parent assembly has the parameter PROJECT_NAME= ProjectABC&lt;/P&gt;
&lt;P&gt;I have the same parameter on the parts "PROJECT_NAME", and I want to populate it with the value from the parent assembly "ProjectABC".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 11:19:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544490#M261</guid>
      <dc:creator>hdasilva</dc:creator>
      <dc:date>2018-04-11T11:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Parameter value from parent</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544498#M262</link>
      <description>&lt;P&gt;Yes, but you don't use the assembly's name, you use its session id.&amp;nbsp; See this help page for details:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.ptc.com/help/creo/creo_pma/usascii/#page/fundamentals%2Ffundamentals%2Ffund_seven_sub%2FTo_Specify_a_Parameter_in_Another_Model.html%23" target="_blank"&gt;http://support.ptc.com/help/creo/creo_pma/usascii/#page/fundamentals%2Ffundamentals%2Ffund_seven_sub%2FTo_Specify_a_Parameter_in_Another_Model.html%23&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can "push" the assembly parameter down to the model or you can "pull" it from the assembly into the model.&amp;nbsp; I would suggest pushing from the assembly since the assembly may not be in session if just the model is opened and this can lead to failed relation statements&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;P&gt;Assembly Session ID: 0&lt;/P&gt;
&lt;P&gt;Model Session ID: 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Push" from Assembly&lt;/P&gt;
&lt;P&gt;MODEL_PARAM:1 = ASM_PARAM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Pull" from Model&lt;/P&gt;
&lt;P&gt;MODEL_PARAM = ASM_PARAM:0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's fine to use the same parameter name in both places (like you have).&amp;nbsp; When no session ID is used, the local parameter is automatically referenced.&amp;nbsp; So your final relation will look something like this in the assembly relations (with a different session ID of course):&lt;/P&gt;
&lt;P&gt;PROJECT_NAME:1 = PROJECT_NAME&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 11:48:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544498#M262</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2018-04-11T11:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get Parameter value from parent</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544516#M263</link>
      <description>&lt;P&gt;That's exactly what I was looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 13:27:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544516#M263</guid>
      <dc:creator>hdasilva</dc:creator>
      <dc:date>2018-04-11T13:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get Parameter value from parent</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544627#M264</link>
      <description>&lt;P&gt;Hello TomU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I was trying to&amp;nbsp; put this on our part template, so that when we start a new project, all the parts on it would already have this relation. As our parent assembly always has session ID=1, this could be possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The problem is that I cannot create this on the part template because there, I don't have a parent assembly to refer to, and he doesn't let me create the relation. So,I created an assembly (with session ID=1), and put it on the templates folder, then I put the part template on this assembly and he lets me create the relation. But now I cannot use the part template when I create news parts, because he cannot load the session ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any Idea on how to handle this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 08:17:38 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544627#M264</guid>
      <dc:creator>hdasilva</dc:creator>
      <dc:date>2018-04-12T08:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get Parameter value from parent</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544660#M265</link>
      <description>&lt;P&gt;Unfortunately this won't work.&amp;nbsp; The parent assembly will not always be session id '1'.&amp;nbsp; Session ids are assigned based on the order files are opened in Creo.&amp;nbsp; The first file opened is '0', the next '1', and so on.&amp;nbsp; Behind the scenes Creo will keep track of the actual model it's referring to, but you have no control over that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning templates, I'm fairly certain you cannot use a model with external references as a template.&amp;nbsp; This means an assembly template must be empty (nothing assembled to it) and parts must not reference other parts (or assemblies.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a way to have a drawing template dynamically link up with the parent part or assembly (see ':mdl' syntax), but there is no way to automatically do this between parts and assemblies.&amp;nbsp; You will just have to get used to manually creating the relation based on the current session ids.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 12:33:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Parameter-value-from-parent/m-p/544660#M265</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2018-04-12T12:33:49Z</dc:date>
    </item>
  </channel>
</rss>

