How to display Windchill CAD files on ThingWorx Flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to display Windchill CAD files on ThingWorx Flow
Hi Community,
I have installed ThingWorx Flow and configured it with Windchill Server. For Testing purpose I tried creating a sample Workflow which will use GetViewables to retrieve windchill visualizations as 3D thumbnails.
Could you please suggest how I can display this on ThingView Widget?
What should be next step to retrieve list of CAD Documents and Parts and display it on a ThingWorx UI.
Thanks,
Siddharth
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Coding
-
Design
-
Examples
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Disable Async in Workflow Webhook
Map URL to Workflow Output
Open WorkFlow Thing in Composer. Navigate to service, you can find your workflow name as service. You can get the URL by executing the service.
Since I don't have a proper example in my test windchill. I have mapped the part name as output.
/VR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can map the URL to widget property "ProductToView" to load the 3D Model
You can find all Thingworx Workflow as a Service in Workflows Thing
You can use those services to show data in Thingworx UI
/VR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Velkumar ,
Thanks for your response. In my previous queries you and ptc community have provided me solution on loading data on mashup using thingView widget. I am getting stuck how to transfer this url to ThingWorx mashup. Any best practice example available using flow in which I can query list of CAD documents via Flow and display on mashup for my internal demo.
Thanks,
Siddharth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Disable Async in Workflow Webhook
Map URL to Workflow Output
Open WorkFlow Thing in Composer. Navigate to service, you can find your workflow name as service. You can get the URL by executing the service.
Since I don't have a proper example in my test windchill. I have mapped the part name as output.
/VR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Velkumar ,
Thanks for your suggestion. In our use case end user needs to search and view windchill CAD documents/Parts details from thingWorx Mashup. Will WebHook trigger be the right approach to use as it will keep polling external system?
Also, could you please share screenshot of workflow which you are describing. It will give me more clarity in understanding.
Thanks,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
WebHook will not poll data continuously from external systems. It will be triggered/executed when an endpoint is accessed. In our service, it will be triggered when we execute the Thingworx Service.
Thingworx Workflow
If you have Navigate installed, you can also reuse Navigate Components to get the Part Model from the windchill system.
/VR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Velkumar ,
I am also testing same workflow.
In your pevious image, for 2nd step you mentioned to map url to workflow output. Is this option available under same workflow webhook?
Sorry, I am not getting this option. I searched in ptc documentation but could not figure it out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Output should be configured in Output Action, not in WebHook.
Go to Output Settings, you can see Output options. Could you please post your workflow screenshot?
/VR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Velkumar ,
Thanks, I can see it now. But now I am getting server error on my screen. could you please help?
Error: Failed to execute service 400 "{\"error\":{\"code\":null,\"message\":\"A persistence error occurred.\"}}"
a2: Get Viewable: Failed to execute service 400 "{\"error\":{\"code\":null,\"message\":\"A persistence error occurred.\"}}"
Thanks,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I think this error message is from Windchill not related to Thingworx or Thingworx Flow.
Try to run the workflow again. Also, the List of Identifiers value as partId in Get Viewable action
/VR
