<?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: Using the code of the .asm in the drawing of the .prt in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044990#M14630</link>
    <description>&lt;P&gt;Creo does not open referenced parts automatically.&lt;/P&gt;
&lt;P&gt;If you open an part that has external references you get a statement of the form:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;WARNING: External reference not present, placement frozen (feat id: 234).&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To my recollection, it has always been thus.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 11:40:06 GMT</pubDate>
    <dc:creator>KenFarley</dc:creator>
    <dc:date>2025-11-26T11:40:06Z</dc:date>
    <item>
      <title>Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044200#M14604</link>
      <description>&lt;P&gt;Good afternoon i'm using a creo parametric 11 version, i'm trying for my drawing to populate the "code nr." and some other parameter as shown below automatically.&lt;BR /&gt;For example a code can be "202500001_11" i want to manually apply che 202500001 code only on the main .asm parameter and use the same code also in all the .prt drawing on the repeat region.&lt;BR /&gt;Actually i write this code on the relation of all the .prt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DESCRIZIONE_ORDINE=DESCRIZIONE_ORDINE:1&lt;BR /&gt;NOME_PARTICOLARE=rel_model_name&lt;BR /&gt;DISEGNATO=DISEGNATO:1&lt;BR /&gt;ORDINE=ORDINE:1&lt;BR /&gt;CODICE=CODICE:1&lt;BR /&gt;DATA_CREAZIONE=DATA_CREAZIONE:1&lt;BR /&gt;QNT=QNT:1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And it works, but i cannot save this code in the start part of the .prt because of that ":1" that refer to the .asm and it does not exist in the new .prt.&lt;BR /&gt;for the "_11" i'm using matching code like this and it workd perfectly also on the start part&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF rel_model_name=="CAV_M"&lt;BR /&gt;NR_PARTE="_11M"&lt;BR /&gt;&lt;BR /&gt;Can someone help me with the main code ?&lt;BR /&gt;&lt;BR /&gt;Thank you for your time and help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 12:26:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044200#M14604</guid>
      <dc:creator>AC_9932786</dc:creator>
      <dc:date>2025-11-20T12:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044223#M14606</link>
      <description>&lt;P&gt;Whenever I want to assign values or parameters to the components of an assembly, I do so by passing the values from the assembly, not by using assembly parameters in the part. The part does not have any stored information in it that designates the assembly it belongs to. In fact, a part could belong to multiple assemblies. The part doesn't "know" it is in an assembly. The session ID, the ":1" you are using, is assigned to the assembly based upon what order it was loaded into memory. ":1" is the first, the next will be assigned ":3", etc. Odd numbers for assemblies, even numbers for parts.&lt;/P&gt;
&lt;P&gt;Putting relations in start parts that reference assembly session IDs is not going to work, unless you happen to have an assembly with that session ID in memory. But even then, it probably won't work like you hope it will.&lt;/P&gt;
&lt;P&gt;I really don't understand exactly what you want to do, here.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 14:21:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044223#M14606</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2025-11-20T14:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044316#M14612</link>
      <description>&lt;P&gt;Thank you for your support,&lt;/P&gt;&lt;P&gt;as shown in the picture attached,in the drawing of every components i want to use,&amp;nbsp;for the parameters highlighted in red, the same parameters used in the assembly.&lt;/P&gt;&lt;P&gt;It is possibile ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 09:14:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044316#M14612</guid>
      <dc:creator>AC_9932786</dc:creator>
      <dc:date>2025-11-21T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044330#M14615</link>
      <description>&lt;P&gt;Okay you would like to change part numbers based on a common prefix, I guess, you know that this may dangerous 🧐 But anyhow, how are the filenames of this components.&amp;nbsp;Personally I would like to derive the prefix based on the filename, here you can use a parameter within the relation.&lt;/P&gt;
&lt;P&gt;If you stick to a common block like parameter, thing about to use a designated layout/notebook. But in this case you have to deal with reassigning the referenced layout at the beginning or if you copy a project, but for all members you can drive the numbering prefix at one spot, like you do with ‚aaa:xx‘&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 09:54:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044330#M14615</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2025-11-21T09:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044357#M14617</link>
      <description>&lt;P&gt;If you want to use a parameter from the assembly to set parameters in the components of the assembly, you use relations in the assembly to pass the value down to the components. For example, if I have a parameter in my assembly called "Description2" that I want to be the same in my components, I need relations in the assembly that look like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/*
/* Use Description2 from assembly to set Description2 in components.
/*
Description2:2  = Description2
Description2:10 = Description2
Description2:12 = Description2&lt;/LI-CODE&gt;
&lt;P&gt;Note that the relations in the assembly do not include a session ID for the assembly parameters.&amp;nbsp; I suppose you could, but doing so is unnecessary.&lt;/P&gt;
&lt;P&gt;If the parameter in the component is supposed to be more than just a copy of the assembly parameter, you can add the other parameters or strings to build it up, like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Description2:4 = Description2 + ", " + DrawingNumber&lt;/LI-CODE&gt;
&lt;P&gt;By doing things this way, you make sure the session IDs for the components are correct, check that all the settings worked like you want, and save the assembly. If you leave Creo and re-open the assembly, the session IDs might all be different in that session, but the assembly will handle things for you and all the relations will still work exactly the same. Creo "knows" what component the session ID was assigned to in the saved assembly and will switch it to the new session IDs when necessary.&lt;/P&gt;
&lt;P&gt;Trying to go the other way and pull values from the assembly will only work if by chance the session ID of the assembly in a new session is the same as it was when you created the relations in the components. An invalid method.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 12:36:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044357#M14617</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2025-11-21T12:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044511#M14621</link>
      <description>&lt;P&gt;For this type off stuff even an assembly is not required. Create a component, setup your parameters here, get the run time ID and use this ID, to copy or link this parameter to a different model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On save the model name is used, during your session only the ID. Reference handling is done by Creo. On open the model name handle is replaced by the reference Model ID. It is just a simple mapping, and the reason that this ID may change from session to session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like a Layout for poors&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Nov 2025 22:52:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044511#M14621</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2025-11-22T22:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044543#M14622</link>
      <description>&lt;P&gt;Question, though. Will this work if the part/assembly thus referenced isn't in memory when you open the component with the relations in it? I'd guess that relation will fail, but will that cause troubles? Does a failed relation cause evaluation of relations to stop, thereby not executing any relations defined after the failed one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2025 16:43:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044543#M14622</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2025-11-23T16:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044581#M14623</link>
      <description>&lt;P&gt;Ok so you suggest to do the opposite i've done, refer the parameter of the assembly to the component.&lt;BR /&gt;Thank you for your advice.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 08:07:34 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044581#M14623</guid>
      <dc:creator>AC_9932786</dc:creator>
      <dc:date>2025-11-24T08:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044827#M14629</link>
      <description>&lt;P&gt;The model will have a dependency to the linked model, this model should be opened upfront and automatically by Creo due to this external reference.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 14:44:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044827#M14629</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2025-11-25T14:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044990#M14630</link>
      <description>&lt;P&gt;Creo does not open referenced parts automatically.&lt;/P&gt;
&lt;P&gt;If you open an part that has external references you get a statement of the form:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;WARNING: External reference not present, placement frozen (feat id: 234).&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To my recollection, it has always been thus.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 11:40:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044990#M14630</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2025-11-26T11:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1045127#M14631</link>
      <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6385630763112w1018h540r199" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6385630763112" data-account="6058022026001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022026001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6385630763112w1018h540r199');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://www.ptcusercommunity.com/t5/video/gallerypage/video-id/6385630763112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe I use a different Creo &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 01:18:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1045127#M14631</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2025-11-27T01:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1045161#M14632</link>
      <description>&lt;P&gt;Hello &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/436195"&gt;@AC_9932786&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you have some &lt;A href="https://community.ptc.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1044990#M14630" target="_blank"&gt;responses&lt;/A&gt; from our community experts. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution.&amp;nbsp;&lt;BR /&gt;Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vivek N.&lt;BR /&gt;Community Moderation Team.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 07:20:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1045161#M14632</guid>
      <dc:creator>vnamboodheri</dc:creator>
      <dc:date>2025-11-27T07:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using the code of the .asm in the drawing of the .prt</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1045322#M14634</link>
      <description>&lt;P&gt;I solve the problem with the help of both RPN and KenFarley.&lt;/P&gt;&lt;DIV class=""&gt;Thank you everyone&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Nov 2025 07:36:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Using-the-code-of-the-asm-in-the-drawing-of-the-prt/m-p/1045322#M14634</guid>
      <dc:creator>AC_9932786</dc:creator>
      <dc:date>2025-11-28T07:36:27Z</dc:date>
    </item>
  </channel>
</rss>

