Skip to main content
14-Alexandrite
October 15, 2023
Question

How to view CAD Data in Browser from Windchill using REST/Odata API

  • October 15, 2023
  • 2 replies
  • 5203 views

Hello Community,

I have recently installed Windchill 11.1 on my development environment and need to expose CAD Data to ThingWorx Navigate. I am referring PTC documentation https://support.ptc.com/help/windchill_rest_services/r2.0/en/index.html#page/windchill_rest_services/visualizationdomain.html# for reference. In which I am using following Odata endpoints in windchill to achieve this : 

1) Get /Windchill/servlet/odata/Visualization/Representations('OR:wt.viewmarkup.DerivedImage:786687')/PTC.Visualization.GetPVZ(IncludeAnnotations=true,Fidelity='Low Fidelity')

 

Here, returned data is downloadable and I am not able to view it on browser. Also, I have enable WebGL on my browser to render such files.  Kindly, let me know what could be an alternative to directly view CAD data on browser. 

 

 

Best Regards,

Sid

 

2 replies

17-Peridot
October 16, 2023

GetPVZ gives you a zip file which is viewable in CreoView, according to the documentation in Windchill/netmarkets/html/wrs/doc.html . I have not tried this myself.  

14-Alexandrite
October 17, 2023

Thanks for your reply. I also saw that in documentation but all I am looking for is any alternative to this. Any other endpoint should I call using which I can get the output on browser.

 

Thanks,

Sid

17-Peridot
October 17, 2023

ThingWorx Navigate has complex (or should I say undocumented) access to Windchill data. From memory it has access to thumbnails and possibly 2d representations. From memory, ThingWorx Navigate works with a standard browser. You may want to pose this question on a Thingworx forum. 

13-Aquamarine
October 19, 2023

ThingWorx Navigate is using the ThingView Widget to display CAD-(Creo View) data in the browser. (as seen in this picture)

ThorstenMueller_0-1697698756448.png

You cannot directly view the CAD data in a browser without some Widget/app to render the data.
In ThingWorx Navigate you should bind a service like "Part_GetDynamicStructureRepresentation" to the "ProductToView" property of the ThingView widget.
There's also a help section about the ThingView widget in the Navigate help center:
https://support.ptc.com/help/thingworx/navigate/r9.4/en/ThingWorx_Navigate/Customization/webGL_extension/cv_webGL_extension_book/configuring_your_thingworx_server_to_work_with_the_thingview_widget.html#

 
HelesicPetr
22-Sapphire II
22-Sapphire II
October 19, 2023

Hi @Siddharth_Jhs 

ThingWorx navigate is nice example

 

You can create own page, with own functions, where you show the 3D model from CreoView file

You load just PVZ and the model will be shown on the page.

You just need to know how to create that page and how to use "CreoView WebGL API"

 

Petrh