Skip to main content
16-Pearl
June 12, 2025
Solved

Get drawing information from model and than opening it using JS

  • June 12, 2025
  • 1 reply
  • 833 views

Hello,
We are experiencing difficulties opening drawings directly from the model . Currently, our designers have to manually go to the server information(Windchill), navigate to the content tab, find the drawing reference, and only then open the drawing.

Is there a way to use Creo JS to programmatically find the drawing reference associated with the current model in Windchill, and then automatically download and open it?

Any advice or example scripts would be greatly appreciated!

 

Best answer by RPN

You don,t need to purches, there is Java API as well. I guess you can do that with a http request. The parent info is not written in the part, because of rename. If you do this via SQL you have to take permission or ACLs into account, so this may a long journey. If you have a rule <SolidName> equal to <DrawingName> then just try to open the Drawing. Don‘t forget to figure out the drawing, based on dependency types. just check the data in Windchill.

With external data you can write this to the solid as well, because renaming is most of the time due to numbering not allowed.

1 reply

18-Opal
June 12, 2025

You need a SQL Query to figure out all related Drawings in Windchill. 

16-Pearl
June 13, 2025

Is this something we need to purchase separately, or is there free access available?

RPN18-OpalAnswer
18-Opal
June 13, 2025

You don,t need to purches, there is Java API as well. I guess you can do that with a http request. The parent info is not written in the part, because of rename. If you do this via SQL you have to take permission or ACLs into account, so this may a long journey. If you have a rule <SolidName> equal to <DrawingName> then just try to open the Drawing. Don‘t forget to figure out the drawing, based on dependency types. just check the data in Windchill.

With external data you can write this to the solid as well, because renaming is most of the time due to numbering not allowed.