<?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: Create Functions on relations in 3D Part &amp; Assembly Design</title>
    <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Create-Functions-on-relations/m-p/788725#M123462</link>
    <description>&lt;P&gt;It is not part of Creo functionality to create functions in relations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can however create mapkeys to automate typing in relations. You can also create UDFs that have relations built in. Lastly there are several toolkits available (jlink, weblink, vb, etc) that allow you to more fully automate Creo. If you are interested in automating Creo there is going to be a webinar this Thursday at 1pm EST talking about just that:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fptc.zoom.us%2Fwebinar%2Fregister%2FWN_q7sn4TyDQaG328fc8SVDcQ&amp;amp;data=04%7C01%7Ccrees%40dmtllc.org%7C4cfa2d4868d64cd5563208da16886028%7C7e8b72dd44fb4067958376b2ec0b22e6%7C0%7C0%7C637847072259657586%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=sp4ea6B57JibPD8ZTh%2BWKFq2cI1bn%2BvjKxxeJ%2B%2F%2FgH4%3D&amp;amp;reserved=0" target="_blank"&gt;https://ptc.zoom.us/webinar/register/WN_q7sn4TyDQaG328fc8SVDcQ&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 10:36:12 GMT</pubDate>
    <dc:creator>Chris3</dc:creator>
    <dc:date>2022-04-06T10:36:12Z</dc:date>
    <item>
      <title>Create Functions on relations</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Create-Functions-on-relations/m-p/788713#M123460</link>
      <description>I am using Pro/ENGINEER and Creo Elements/Pro Release Wildfire 4.0 and DatecodeM130&lt;BR /&gt;&lt;BR /&gt;I want to use the same relation using measurements of the model many times. Instead of repeating the same relation for each used measurement, is it possible to create a function where each time it is needed on the Relations it could be called specifying the value needed to perform the calculation.&lt;BR /&gt;For instance, in Python would be something like this:&lt;BR /&gt;&lt;BR /&gt;#Function definition:&lt;BR /&gt;def sum(a, b):&lt;BR /&gt;return a + b&lt;BR /&gt;&lt;BR /&gt;#When the function is needed would be called like this:&lt;BR /&gt;sum(3, 4)&lt;BR /&gt;&lt;BR /&gt;Result --&amp;gt; 7&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Apr 2022 09:43:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Create-Functions-on-relations/m-p/788713#M123460</guid>
      <dc:creator>xureta</dc:creator>
      <dc:date>2022-04-06T09:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Functions on relations</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Create-Functions-on-relations/m-p/788725#M123462</link>
      <description>&lt;P&gt;It is not part of Creo functionality to create functions in relations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can however create mapkeys to automate typing in relations. You can also create UDFs that have relations built in. Lastly there are several toolkits available (jlink, weblink, vb, etc) that allow you to more fully automate Creo. If you are interested in automating Creo there is going to be a webinar this Thursday at 1pm EST talking about just that:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fptc.zoom.us%2Fwebinar%2Fregister%2FWN_q7sn4TyDQaG328fc8SVDcQ&amp;amp;data=04%7C01%7Ccrees%40dmtllc.org%7C4cfa2d4868d64cd5563208da16886028%7C7e8b72dd44fb4067958376b2ec0b22e6%7C0%7C0%7C637847072259657586%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=sp4ea6B57JibPD8ZTh%2BWKFq2cI1bn%2BvjKxxeJ%2B%2F%2FgH4%3D&amp;amp;reserved=0" target="_blank"&gt;https://ptc.zoom.us/webinar/register/WN_q7sn4TyDQaG328fc8SVDcQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 10:36:12 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Create-Functions-on-relations/m-p/788725#M123462</guid>
      <dc:creator>Chris3</dc:creator>
      <dc:date>2022-04-06T10:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create Functions on relations</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Create-Functions-on-relations/m-p/788732#M123463</link>
      <description>&lt;P&gt;This isn't possible. Relations are processed in a serial manner every time you regenerate. There is no looping or function definition capability, regrettably. That's why if you need to do something like calculate the closest fraction based on a floating point value, or generate a few strings from real numbers, you end up with a very long list of relations, with many IF - ELSE- ENDIF statements.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 11:05:50 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Create-Functions-on-relations/m-p/788732#M123463</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2022-04-06T11:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Functions on relations</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Create-Functions-on-relations/m-p/789973#M123541</link>
      <description>&lt;P&gt;If you have a license for the BMX module you can use an Excel analysis feature which would may support what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.ptc.com/help/creo/creo_pma/usascii/index.html#page/model_analysis%2Fbemod%2FTo_Create_an_Excel_Analysis_Feature.html%23wwconnect_header" target="_blank" rel="noopener"&gt;http://support.ptc.com/help/creo/creo_pma/usascii/index.html#page/model_analysis%2Fbemod%2FTo_Create_an_Excel_Analysis_Feature.html%23wwconnect_header&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 13:48:01 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Create-Functions-on-relations/m-p/789973#M123541</guid>
      <dc:creator>tbraxton</dc:creator>
      <dc:date>2022-04-13T13:48:01Z</dc:date>
    </item>
  </channel>
</rss>

