cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

Get drawing information from model and than opening it using JS

ilyachaban
16-Pearl

Get drawing information from model and than opening it using JS

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!

 

ACCEPTED SOLUTION

Accepted Solutions
RPN
17-Peridot
17-Peridot
(To:ilyachaban)

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.

View solution in original post

4 REPLIES 4
RPN
17-Peridot
17-Peridot
(To:ilyachaban)

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

ilyachaban
16-Pearl
(To:RPN)

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

RPN
17-Peridot
17-Peridot
(To:ilyachaban)

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.

ilyachaban
16-Pearl
(To:RPN)

Thank you for your reply. This i'll try to invest this time to make this possible. Due to we don't have SolidName === DrawingName.

Announcements

Top Tags