<?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: How to trigger Creo APIs/functionalities from external cloud application in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/How-to-trigger-Creo-APIs-functionalities-from-external-cloud/m-p/823828#M11591</link>
    <description>&lt;P&gt;Hi, try to explore similar cases&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.ptc.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;allow_punctuation=false&amp;amp;filter=location&amp;amp;location=forum-board:customization&amp;amp;q=rest" target="_blank" rel="noopener"&gt;Search by key word "REST"&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 12:16:33 GMT</pubDate>
    <dc:creator>YaroslavSin</dc:creator>
    <dc:date>2022-09-15T12:16:33Z</dc:date>
    <item>
      <title>How to trigger Creo APIs/functionalities from external cloud application</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/How-to-trigger-Creo-APIs-functionalities-from-external-cloud/m-p/823810#M11589</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where I am developing a application which will be deployed to cloud PaaS or SaaS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need this application to interact with the Creo Parametric and perform actions such as - retrieving and loading a design in a new Creo Session. My first though was to use JLink asynchronous method and deploy the code as Rest API. But this is giving issues related to loading libraries, which I can't seem to resolve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help with this requirement. It doesn't matter if this is done synchronously or asynchronously, I just need to establish some sort of connectivity from cloud to on-prem Creo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Apoorva&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 11:30:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/How-to-trigger-Creo-APIs-functionalities-from-external-cloud/m-p/823810#M11589</guid>
      <dc:creator>AK_9776674</dc:creator>
      <dc:date>2022-09-15T11:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger Creo APIs/functionalities from external cloud application</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/How-to-trigger-Creo-APIs-functionalities-from-external-cloud/m-p/823828#M11591</link>
      <description>&lt;P&gt;Hi, try to explore similar cases&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.ptc.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;allow_punctuation=false&amp;amp;filter=location&amp;amp;location=forum-board:customization&amp;amp;q=rest" target="_blank" rel="noopener"&gt;Search by key word "REST"&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 12:16:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/How-to-trigger-Creo-APIs-functionalities-from-external-cloud/m-p/823828#M11591</guid>
      <dc:creator>YaroslavSin</dc:creator>
      <dc:date>2022-09-15T12:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger Creo APIs/functionalities from external cloud application</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/How-to-trigger-Creo-APIs-functionalities-from-external-cloud/m-p/824214#M11596</link>
      <description>&lt;P&gt;I think your only way is to use assynchronous jlink application because any application "listening" any triggers will block jlink thread.&lt;/P&gt;&lt;P&gt;As said in creo jlink guide:&lt;/P&gt;&lt;PRE&gt;When you run a synchronous Creo Object TOOLKIT Java program, you should&lt;BR /&gt;configure your program so it does not interfere with the main thread of the Creo&lt;BR /&gt;program. Because the Java API allows you to run with multiple threads, you&lt;BR /&gt;should be cautious of using certain Java routines in your program.&lt;BR /&gt;The most obvious restriction involves the use of Java language user interfaces.&lt;BR /&gt;Any Java window that you create must be a dialog box that is blocking (or modal).&lt;BR /&gt;Creating a nonblocking frame causes a new thread to begin, which can have&lt;BR /&gt;unexpected results when running with Creo application. For example, you can use&lt;BR /&gt;the javax.swing.JDialog class and set modal true. You cannot use&lt;BR /&gt;javax.swing.JWindow, however, because it starts a thread.&lt;/PRE&gt;&lt;P&gt;To communicate with your cloud app I would use websockets:&amp;nbsp;&lt;A title="Java Websockets" href="https://www.baeldung.com/java-websockets" target="_blank" rel="noopener"&gt;here is nice tutorial&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This cannot be used in synchronnous app because websocket create TCP socket listening on specific port which will block creo until socket is not closed.&lt;/P&gt;&lt;P&gt;You can also periodically connect and disconnect to your cloud app but you will no longer be able to trigger from cloud.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:00:55 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/How-to-trigger-Creo-APIs-functionalities-from-external-cloud/m-p/824214#M11596</guid>
      <dc:creator>sjuraj</dc:creator>
      <dc:date>2022-09-16T10:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger Creo APIs/functionalities from external cloud application</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/How-to-trigger-Creo-APIs-functionalities-from-external-cloud/m-p/824290#M11599</link>
      <description>&lt;P&gt;pretty simple using :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.creoson.com/" target="_blank" rel="noopener"&gt;CREOSON&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:21:55 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/How-to-trigger-Creo-APIs-functionalities-from-external-cloud/m-p/824290#M11599</guid>
      <dc:creator>DavidBigelow</dc:creator>
      <dc:date>2022-09-16T13:21:55Z</dc:date>
    </item>
  </channel>
</rss>

