<?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 Restrict parameter to a single character value in 3D Part &amp; Assembly Design</title>
    <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724474#M119273</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can create a string type parameter whose max length can be 80 characters. Is there a way to restrict minimum size of parameter value? In other words , I just need first character in parameter value for a parameter and rest all should be discarded. Is there any configuration or option for same?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 04:27:34 GMT</pubDate>
    <dc:creator>Ketan_Lalcheta</dc:creator>
    <dc:date>2021-04-15T04:27:34Z</dc:date>
    <item>
      <title>Restrict parameter to a single character value</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724474#M119273</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can create a string type parameter whose max length can be 80 characters. Is there a way to restrict minimum size of parameter value? In other words , I just need first character in parameter value for a parameter and rest all should be discarded. Is there any configuration or option for same?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 04:27:34 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724474#M119273</guid>
      <dc:creator>Ketan_Lalcheta</dc:creator>
      <dc:date>2021-04-15T04:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict parameter to a single character value</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724563#M119278</link>
      <description>&lt;P&gt;do a search for restricted value parameter in Creo, you will find much information.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 12:51:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724563#M119278</guid>
      <dc:creator>jbob</dc:creator>
      <dc:date>2021-04-15T12:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict parameter to a single character value</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724567#M119279</link>
      <description>&lt;P&gt;I believe you are telling about a set of possible values for a parameter. I am aware about this but it is not possible to change parameter type due to other business restriction. Is there any configuration which discards values other than first character for a specific string type parameter?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 12:59:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724567#M119279</guid>
      <dc:creator>Ketan_Lalcheta</dc:creator>
      <dc:date>2021-04-15T12:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict parameter to a single character value</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724593#M119281</link>
      <description>&lt;P&gt;Without getting into programming an interface to truncate your parameter to a single character, the only option I can think of is to use 2 parameters.&lt;/P&gt;
&lt;P&gt;Your users enter their text into parameter named FULL and enter "Whyamienteringallthistextforonecharacter"&lt;/P&gt;
&lt;P&gt;You have a second parameter named SINGLE and use relations to extract the single character from FULL.&lt;/P&gt;
&lt;P&gt;SINGLE = extract(FULL,1,1)&lt;/P&gt;
&lt;P&gt;Now you use the SINGLE parameter where needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 14:12:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724593#M119281</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2021-04-15T14:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict parameter to a single character value</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724614#M119282</link>
      <description>&lt;P&gt;Just be sure to check the FULL parameter length so you can have a graceful handling of when it is an empty string. I.e.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF string_length(FULL) &amp;lt; 1 THEN
  SINGLE = "*"
ELSE
  SINGLE = EXTRACT(FULL,1,1)
ENDIF&lt;/LI-CODE&gt;
&lt;P&gt;I've been hurt by this in the past.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 15:23:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Restrict-parameter-to-a-single-character-value/m-p/724614#M119282</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2021-04-15T15:23:22Z</dc:date>
    </item>
  </channel>
</rss>

