<?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: Drawing parts list parameters using description or common name in 3D Part &amp; Assembly Design</title>
    <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958181#M135392</link>
    <description>&lt;P&gt;I am using this code, since I am using windchill but you can substitue asm_mbr_wt_docname with your asm_mbr_ptc_common_name. There is also protection if the parameter of description is empty, since some guys kept forgetting filling the description parameter. So we had parameter in start model but nobody manually filled it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if exists("asm_mbr_description") 
	table_name = asm_mbr_description
	if asm_mbr_description == ""
	table_name = asm_mbr_wt_docname
	endif
else
table_name = asm_mbr_wt_docname
endif&lt;/LI-CODE&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;In region put in rpt.rel.table_name ofc&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 07:10:05 GMT</pubDate>
    <dc:creator>Radovan_DT</dc:creator>
    <dc:date>2024-06-26T07:10:05Z</dc:date>
    <item>
      <title>Drawing parts list parameters using description or common name</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958086#M135385</link>
      <description>&lt;P&gt;Using Creo 9.0....I have some legacy parts that were named with the description parameter and all my new parts have been named with ptc_common_name parameter. Is there a way for my drawing parts list to pull either name if i have an assembly with both new and legacy parts? I was thinking of adding a repeat region relation that is along the lines of the code below. Also, i don't want to modify the original part files. Is there a way to do this because my way isn't working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/NAME is new drawing parameter for the name column&lt;/P&gt;&lt;P&gt;If description exists&lt;/P&gt;&lt;P&gt;NAME = asm.mbr.description&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;If ptc_common_name exists&lt;/P&gt;&lt;P&gt;NAME = asm.mbr.ptc_common_name&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 15:01:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958086#M135385</guid>
      <dc:creator>GS_9490468</dc:creator>
      <dc:date>2024-06-25T15:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing parts list parameters using description or common name</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958099#M135388</link>
      <description>&lt;P&gt;Basing an IF statement on the existance of the ptc_common_name parameter is not helpful. As far as I know that parameter always exists,&lt;/P&gt;
&lt;P&gt;I'm also uncertain if your syntax is correct for affecting a bill of materials column. Maybe someone who does a lot of this type of thing will chime in with some helpful tips.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 16:15:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958099#M135388</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2024-06-25T16:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing parts list parameters using description or common name</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958100#M135389</link>
      <description>&lt;P&gt;Note that once the CAD file is uploaded to Windchill, it will have the PTC_COMMON_NAME parameter...&lt;/P&gt;
&lt;P&gt;So therefore I'm pretty sure your repeat relation pseudo-code will always result in the PTC_COMMON_NAME being reported in the repeat region table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd try something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF exists("asm_mbr_DESCRIPTION")
  NAME = asm_mbr_DESCRIPTION
else
  NAME = asm_mbr_PTC_COMMON_NAME
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this online help page for repeat relations that involve:&amp;nbsp;&lt;A title="Example: “If exists ()” Syntax in Repeat Region" href="https://support.ptc.com/help/creo/creo_pma/r9.0/usascii/index.html#page/detail/If_exists_syntax_in_repeat_region.html" target="_blank" rel="noopener"&gt;testing whether a parameter exists in a model&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 16:27:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958100#M135389</guid>
      <dc:creator>pausob</dc:creator>
      <dc:date>2024-06-25T16:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing parts list parameters using description or common name</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958171#M135391</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;AFAIK&amp;nbsp;&lt;STRONG&gt;PTC_COMMON_NAME&lt;/STRONG&gt; parameter is present in all Creo models (Windchill usage&amp;nbsp;is not a necessary condition).&lt;/P&gt;
&lt;P&gt;Test: add following relation temporarily, verify relations and look at&amp;nbsp;&lt;STRONG&gt;testpar&lt;/STRONG&gt; value&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;testpar=PTC_COMMON_NAME&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Repeat region table cell must contain &lt;STRONG&gt;&amp;amp;rptr.rel.NAME&lt;/STRONG&gt; callout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 06:23:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958171#M135391</guid>
      <dc:creator>MartinHanak</dc:creator>
      <dc:date>2024-06-26T06:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing parts list parameters using description or common name</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958181#M135392</link>
      <description>&lt;P&gt;I am using this code, since I am using windchill but you can substitue asm_mbr_wt_docname with your asm_mbr_ptc_common_name. There is also protection if the parameter of description is empty, since some guys kept forgetting filling the description parameter. So we had parameter in start model but nobody manually filled it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if exists("asm_mbr_description") 
	table_name = asm_mbr_description
	if asm_mbr_description == ""
	table_name = asm_mbr_wt_docname
	endif
else
table_name = asm_mbr_wt_docname
endif&lt;/LI-CODE&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;In region put in rpt.rel.table_name ofc&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 07:10:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/958181#M135392</guid>
      <dc:creator>Radovan_DT</dc:creator>
      <dc:date>2024-06-26T07:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing parts list parameters using description or common name</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/959785#M135479</link>
      <description>&lt;P&gt;Hi &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/842763"&gt;@GS_9490468&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to follow up with you on your post to see if your question has been answered.&amp;nbsp;&lt;BR /&gt;If so, 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 that we can continue to help you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 18:29:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Drawing-parts-list-parameters-using-description-or-common-name/m-p/959785#M135479</guid>
      <dc:creator>anursingh</dc:creator>
      <dc:date>2024-07-04T18:29:10Z</dc:date>
    </item>
  </channel>
</rss>

