Overview of integration for PTC ThingWorx (Integration for PTC ThingWorx)
Using PTC ThingWorx you can create web-based applications (ThingWorx Mashups) that can display data from different applications.
Modeler integrates with PTC ThingWorx in the following ways:
You can generate systems that can be used by ThingWorx Things and Mashups.
You can generate systems that can communicate with other systems using the ThingWorx AlwaysOn protocol.
You can include generated ThingWorx-ready code that can be used in SySim model executions, use ThingWorx Mashups to control a SySim model execution.
The Help assumes that you have a good working knowledge of PTC ThingWorx.
* 
If you have upgraded from Modeler 9.3, then before you use ThingWorx integration, you must download and install the Java Edge SDK from here.
ThingWorx Profile
Modeler includes the ThingWorx Profile that you can add to a model.
The ThingWorx Profile includes the Stereotypes and Tag Definitions you require to set up a model to generate code for use with ThingWorx.
For information about the ThingWorx Profile and the Stereotypes and Tag Definitions it includes, see the Related Links section below.
Electric Car Charger (Java) example model
The Examples database includes the Electric Car Charger (Java) example model.
This model demonstrates use of the ThingWorx Profile in a model.
The ReadMe text diagram in the Electric Car Charger (Java) model provides information about how the model works, how to generate the code and how build to build the system.
Modeling code for systems that can be used by ThingWorx things and mashups
After modeling your system in Modeler, you can add the ThingWorx Profile to the model and use its Stereotypes to define the data and services from the system that will be exposed to ThingWorx Things and Mashups.
In addition, ACS generates XML files that can be imported to a ThingWorx server to create Data Shapes, Thing Shapes and Thing Templates on that server. The model can be set up to automatically export the generated XML files to a ThingWorx server.
For information about modeling code for systems that can be used by ThingWorx Things and Mashups, see Modeling code for systems that can be used by ThingWorx things and mashups (Integration for PTC ThingWorx).
Modeling code for systems that communicate through the ThingWorx AlwaysOn protocol
After modeling your system in Modeler, you can add the ThingWorx Profile to the model and use its «ThingWorx ConnectedClient» Stereotype to define which ports can communicate through the ThingWorx AlwaysOn protocol.
For information about modeling code for systems that can communicate through the ThingWorx AlwaysOn protocol, see Overview of modeling code for systems that communicate through the ThingWorx AlwaysOn protocol (Integration for PTC ThingWorx).
Using SySim with ThingWorx
SySim allows Blocks and Classes that are used in a SySim model execution to be replaced by generated ThingWorx-ready device code that runs either on a host (software in the loop) or a connected device (hardware in the loop).
SySim also exposes ThingWorx properties, services and events for Blocks that are used in the model execution. This allows you to use a ThingWorx Mashup to control a SySim model execution, in a similar way to which you would use a VisualBasic form.
For information about using SySim with ThingWorx, see Working with PTC ThingWorx (SySim).
ACS code generator DLLS that support ThingWorx
After applying the Stereotypes from the ThingWorx Profile to items in your model, you must use one of the following ACS code generator DLLs to generate your code.
For C++ code:
Cpp Win32 Production
Cpp Win32 Animation
For Java code:
Java Generator Production
Java Generator Animation
Was this helpful?