<?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: CREO Relations - Repeat Region failing in 3D Part &amp; Assembly Design</title>
    <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/CREO-Relations-Repeat-Region-failing/m-p/970971#M136470</link>
    <description>&lt;P&gt;Can you upload an example drawing, assembly and part files (zipped) that have the proper parameters for testing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 18:49:16 GMT</pubDate>
    <dc:creator>BenLoosli</dc:creator>
    <dc:date>2024-09-11T18:49:16Z</dc:date>
    <item>
      <title>CREO Relations - Repeat Region failing</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/CREO-Relations-Repeat-Region-failing/m-p/970967#M136469</link>
      <description>&lt;P&gt;Currently running Creo Parametric 7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to auto-populate a repeat region.&amp;nbsp; In this assembly, there are two cases:&lt;/P&gt;&lt;P&gt;1) XXXXXX-XXXXX-000, where "000" is the component find number. This is a parameter automatically generated at the part level, and can be called via relation asm_mbr_fn&lt;/P&gt;&lt;P&gt;2) The second case is a manually entered find number at the assembly level. This can be called via asm_mbr_cparam_find_number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These cases are mutually exclusive, i.e&lt;/P&gt;&lt;P&gt;Parts that fall under case 2 &lt;STRONG&gt;&lt;EM&gt;do not &lt;/EM&gt;&lt;/STRONG&gt;have an automatically generated asm_mbr_fn,&lt;/P&gt;&lt;P&gt;Parts that fall under case 1 &lt;EM&gt;&lt;STRONG&gt;do not &lt;/STRONG&gt;&lt;/EM&gt;have a manually entered asm_mbr_cparam_find_number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The components that fall under either case also have a specific naming convention. (see "YYYY", "_XXX" and "_YYYY" below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the relation I have written - but it is not working correctly, specifically the second IF statement is failing. Those cells in the table are blank.&amp;nbsp; The first IF statement works just fine - it correctly populates the part_name and the FIND_NO.&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;name_len =string_length(asm_mbr_name)
SEARCH_PARAM = search(asm_mbr_name, "_")
us_loc = SEARCH_PARAM-1
us_loc_2 = SEARCH_PARAM+1
pn_len = name_len - SEARCH_PARAM
IF string_starts(asm_mbr_name, "YYYY") &amp;amp; SEARCH_PARAM&amp;gt;0
part_name = extract(asm_mbr_name,us_loc_2,pn_len)
FIND_NO = asm_mbr_cparam_find_number
else
part_name = asm_mbr_name
FIND_NO = asm_mbr_fn
endif
IF string_ends(asm_mbr_name, "_XXX") | string_ends(asm_mbr_name,"_YYYY")
part_name = extract(asm_mbr_name,1,us_loc)
FIND_NO = asm_mbr_cparam_find_number
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;It's also worth noting that before I included the FIND_NO lines, the part_name populated correctly for all components. Now only those components that fall under the first IF statement are populating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm scratching my head here - I can't figure out why the addition of the FIND_NO messes everything up. Any help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 18:29:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/CREO-Relations-Repeat-Region-failing/m-p/970967#M136469</guid>
      <dc:creator>lockarde</dc:creator>
      <dc:date>2024-09-11T18:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: CREO Relations - Repeat Region failing</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/CREO-Relations-Repeat-Region-failing/m-p/970971#M136470</link>
      <description>&lt;P&gt;Can you upload an example drawing, assembly and part files (zipped) that have the proper parameters for testing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 18:49:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/CREO-Relations-Repeat-Region-failing/m-p/970971#M136470</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2024-09-11T18:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: CREO Relations - Repeat Region failing</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/CREO-Relations-Repeat-Region-failing/m-p/971041#M136471</link>
      <description>&lt;P&gt;You are in the wrong forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PTC has two CAD systems: &amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Creo+ and Creo Parametric&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Creo Elements Direct&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which makes it confusing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More, for &lt;STRONG&gt;Creo Elements Direct&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;- The 3D software name is &lt;STRONG&gt;Modeling&lt;/STRONG&gt;, and&lt;/P&gt;&lt;P&gt;- The 2D software name is &lt;STRONG&gt;Drafting&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;Creo+ and Creo Parametric&lt;/STRONG&gt;, use only this tab:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KotomEng_0-1726125297525.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/110366i5FFF6A4235A7318B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KotomEng_0-1726125297525.png" alt="KotomEng_0-1726125297525.png" /&gt;&lt;/span&gt;&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should move your post to this community to have a better chance to get an answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Sep 2024 07:15:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/CREO-Relations-Repeat-Region-failing/m-p/971041#M136471</guid>
      <dc:creator>Kotom-Eng</dc:creator>
      <dc:date>2024-09-12T07:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: CREO Relations - Repeat Region failing</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/CREO-Relations-Repeat-Region-failing/m-p/971083#M136472</link>
      <description>&lt;P&gt;Thanks for the response &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/107692"&gt;@BenLoosli&lt;/a&gt;! After fiddling with it the rest of the afternoon, I was able to get it working.&amp;nbsp; Basically I had to split everything up into separate IF statements.&amp;nbsp; Once I removed the "else" and made that condition it's own IF, everything worked. Which is weird... but hey, it works&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 11:03:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/CREO-Relations-Repeat-Region-failing/m-p/971083#M136472</guid>
      <dc:creator>lockarde</dc:creator>
      <dc:date>2024-09-12T11:03:11Z</dc:date>
    </item>
  </channel>
</rss>

