PTC Navigate & Thingworx based App Development Preeti Gupta
Agenda Thingworx Platform & Windchill Extension for Thingworx Development Windchill WebServices Thingworx Service Mashup Development Documentation Deployment PTC Navigate Project Planning Tips
Thingworx Platform Modeling User Interface Object Oriented approach( Java based platform ) ThingShape (Interface) , ThingTemplate (Abstract Class), Thing (Class / Object) User Interface Very rich and Modern looking Rapid application development environment Graphic application builder
Why Develop Windchill Apps in Thingworx Much shorter development time ( PTC out of the box Restful Web service Infrastructure ) Mobile applications Modern architecture to integrate with business systems.
How to Get Started Software Connect Thingworx Platform with Windchill PTC Windchill Extension (Thingworx Marketplace or PTC S/W site) Windchill Patch for Thingworx Integration Connect Thingworx Platform with Windchill Both can exist in same environment ( Development environment)
Out of the box Windchill Integration with Thingworx Platform (Latest 7.2) Windchill Environment (Support for 10.1 M040, 10.2, 11) PTC Windchill PLM Extension 11.0-M010-WCTWXExtension_05 10.1-M050_WCTWXExtension_01
Installing Windchill Extension Import Windchill Extension Import Sample Mashups
Windchill Extension PTC-Windchill-Demo-Thing extends Windchill Connector Click on Configuration to connect to Windchill -Windchill Side TrustedHost for Development Environment
Windchill Connector
Environments Development Environment Production Environment Windchill users have to exist in Thingworx in development environments (wt.auth.trustedHosts ) Production Environment SSL Single Sign On
Ways to communicate to Windchill in Thingworx RESTful End Point Infoengine / SOAP based Webservices
Accessing Out of the box Restful Services via Swagger Enable Site Preference -> Client Customization set to yes.
Example of Out of the Box Restful Web Service Access and Test it via Swagger UI. ( Enable Customization in the Site -> Preferences) Create a service in ptc-Windchill-Demo-Thing which will be calling Rest Endpoint in Windchill. Once service is tested. We create Mashup to visualize the content.
Windchill Data Visualization in Thingworx 2 1 Create a service in PTC-Windchill-DemoThing to access RESTEndPoint Test RESTful Service in Swagger 3 Visualize the data in the Mashup
Step 1 -Testing in Windchill Swagger UI
In Thingworx Composer Write a test service in PTC-Windchill-Demo Thing
Visualizing in Mashup
Writing your Own RESTful Web Service PTC does not support adding your own RESTful web service in Windchill Deployment Requirements Java Class file deployment Site.xconf changes Why Rest? Modern architecture. Built using server side Windchill Java API Easy to debug and maintain Payloads are JSON that are easy to parse in web clients One Web Service can provide various resources vs several infoEngine calls to fetch the same information Windchill JAVA WebService Resource ( RESTEasy Framework) Register RESTFul Webservice resource in Rest.properties REST Endpoint Available in Windchill Swagger Thingworx Call REST Endpoints in Thingworx using ProcessJSONRequest service of Windchill Connector
Few Examples of custom Restful Web Services in Swagger
PTC Navigate View PLM Extension on Thingworx Platform (Latest 7.2) Windchill Environment (Support for 10.1 M040, 10.2, 11) -PTC Windchill Extension - Thingworx Utilities - PTC View Extension 11.0-M010-WCTWXExtension_05 10.1-M050_WCTWXExtension_01 10.1 M040 Special Instructions If you are on Windchill 10.1 M040, you may need to modify the wt.epm.displayCalculatedLink property in wt.properties after the patch is installed. Installing PTC Windchill Extension 25 No changes are required if the property is not set or is set to true; however, if the property is set to false, the View Drawing app will not function unless the property is changed to true. Consider whether changing this property setting has additional impacts at your site. If your site chooses to set the preference to true, use the following procedure to update site.xconf after the patch is installed.
Adding Custom App In PTC Navigate
Example of Infoengine and RESTful Webservice
Documents & Training PTC University courses for Thingworx Infotable Document for Thingworx https://community.thingworx.com/docs/DOC-2380
Project Planning Tips Learning curve – Developing in Thingworx composer environment vs Thingworx extension Skills Required Javascript RESTful Service Infoengine Soap in Windchill
Questions? Preeti_gupta1@outlook.com Or find me on PTC Community Thank You Questions? Preeti_gupta1@outlook.com Or find me on PTC Community