<?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: Pro-Program IF statement question in 3D Part &amp; Assembly Design</title>
    <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675873#M355</link>
    <description>&lt;P&gt;That's true...editing the PRO/Program of an Assembly requires an AAX license.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 07:08:04 GMT</pubDate>
    <dc:creator>HamsterNL</dc:creator>
    <dc:date>2020-07-07T07:08:04Z</dc:date>
    <item>
      <title>Pro-Program IF statement question</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675380#M349</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Looking for help with Pro-Program IF statement.&amp;nbsp; I have a part model that has 2 different bolt hole patterns.&amp;nbsp; I would like to turn off or suppress the larger bolt pattern when the diameter is below a certain size.&amp;nbsp; For instance;&lt;/P&gt;
&lt;P&gt;If diameter d37 &amp;lt;= 5.500, turn off or suppress pattern 2, else leave pattern 2.&lt;/P&gt;
&lt;P&gt;I greatly appreciate the help,&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 15:54:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675380#M349</guid>
      <dc:creator>Steve99</dc:creator>
      <dc:date>2020-07-02T15:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-Program IF statement question</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675440#M350</link>
      <description>&lt;P&gt;First you should create a real number parameter called something like &lt;EM&gt;PART_DIAMETER&lt;/EM&gt; and attach it to the diameter using relations. In relations you would either type&amp;nbsp;&lt;EM&gt;PART_DIAMETER=dxxx&lt;/EM&gt; or &lt;EM&gt;dxxx=PART_DIAMETER &lt;/EM&gt;(you will find the &lt;EM&gt;dxxx&lt;/EM&gt; value by clicking on the extrude sketch while in relations)&lt;EM&gt;, &lt;/EM&gt;depending on whether you want to control the diameter by changing the parameter or have the parameter change based on whatever value you put in the extrude sketch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that you open Pro-Program, locate the larger bolt hole pattern and type &lt;EM&gt;IF PART_DIAMETER&amp;lt;=5500 &lt;/EM&gt;right before the&amp;nbsp;&lt;EM&gt;ADD FEATURE (initial number xx) &lt;/EM&gt;text that Creo has generated. Finally you locate &lt;EM&gt;END ADD &lt;/EM&gt;and type in&lt;EM&gt; END IF&amp;nbsp;&lt;/EM&gt;after that. Make sure you get both the hole and the pattern you want to suppress in between the &lt;EM&gt;IF&lt;/EM&gt; statement and &lt;EM&gt;END IF.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF PART_DIAMETER&amp;lt;=5500&lt;/P&gt;
&lt;P&gt;ADD FEATURE (initial number xx)&lt;/P&gt;
&lt;P&gt;feature ID, parents, dimensions etc.&lt;/P&gt;
&lt;P&gt;END ADD&lt;/P&gt;
&lt;P&gt;END IF&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 05:13:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675440#M350</guid>
      <dc:creator>avero</dc:creator>
      <dc:date>2020-07-03T05:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-Program IF statement question</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675444#M351</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;it is not necessary to create a parameter.&lt;/P&gt;
&lt;P&gt;1.] user can use&amp;nbsp;&lt;STRONG&gt;IF dxxx&amp;lt;=5500&lt;/STRONG&gt; notation&lt;/P&gt;
&lt;P&gt;2.] user can rename dimension symbol from&amp;nbsp;&lt;STRONG&gt;dxxx&lt;/STRONG&gt; to&amp;nbsp;&lt;STRONG&gt;PART_DIAMETER&lt;/STRONG&gt; and use&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;IF PART_DIAMETER&amp;lt;=5500&lt;/STRONG&gt; notation&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 05:29:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675444#M351</guid>
      <dc:creator>MartinHanak</dc:creator>
      <dc:date>2020-07-03T05:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-Program IF statement question</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675449#M352</link>
      <description>&lt;P&gt;Ok, then I learned something myself, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 05:53:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675449#M352</guid>
      <dc:creator>avero</dc:creator>
      <dc:date>2020-07-03T05:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-Program IF statement question</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675460#M353</link>
      <description>&lt;P&gt;Although creating a parameter is not necessary, I would recommend to do it anyway&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are putting your logic into the PRO/Program, a user needs to have an AAX license to change/overrule that logic... Sooner of later, a user will have the need to overrule your logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So we would create a new parameter&amp;nbsp;&lt;STRONG&gt;SHOW_PATTERN&lt;/STRONG&gt; in the RELATIONS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF PART_DIAMETER &amp;lt;= 5500&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;SHOW_PATTERN&lt;/STRONG&gt; = NO&lt;/P&gt;
&lt;P&gt;ELSE&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;SHOW_PATTERN&lt;/STRONG&gt; = YES&lt;/P&gt;
&lt;P&gt;ENDIF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, if you would like to shorten your code in your RELATIONS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SHOW_PATTERN&lt;/STRONG&gt; = (PART_DIAMETER &amp;gt; 5500)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, you can use the SHOW_PATTERN parameter in the PRO/Program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF &lt;STRONG&gt;SHOW_PATTERN&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;ADD FEATURE (xxx)&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;END ADD&lt;/P&gt;
&lt;P&gt;ENDIF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now if a user want to overrule the logic, he can either change the value 5500 to something else, or he could simply write&amp;nbsp;&lt;STRONG&gt;SHOW_PATTERN = YES&lt;/STRONG&gt; just below the logic.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 06:45:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675460#M353</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2020-07-03T06:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-Program IF statement question</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675865#M354</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/226433"&gt;@HamsterNL&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If you are putting your logic into the PRO/Program, a user needs to have an AAX license to change/overrule that logic... Sooner of later, a user will have the need to overrule your logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As far as I know, AAX license is needed only if you're using Pro/PROGRAM at the assembly level; if you use it in single part, it should be covered by the base license. So it all depends on where you need to actually work with Pro/PROGRAM.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 06:09:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675865#M354</guid>
      <dc:creator>LukaszMazur</dc:creator>
      <dc:date>2020-07-07T06:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-Program IF statement question</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675873#M355</link>
      <description>&lt;P&gt;That's true...editing the PRO/Program of an Assembly requires an AAX license.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 07:08:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/675873#M355</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2020-07-07T07:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-Program IF statement question</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/678729#M356</link>
      <description>&lt;P&gt;Worked perfectly for what I needed.&amp;nbsp; Thank you all so much for the responses&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 11:18:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/m-p/678729#M356</guid>
      <dc:creator>Steve99</dc:creator>
      <dc:date>2020-07-22T11:18:46Z</dc:date>
    </item>
  </channel>
</rss>

