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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Naming convention for PDFs in windchill .-cad worker

vicor3
6-Contributor

Naming convention for PDFs in windchill .-cad worker

every time we release a drawing in the Windchill, the CAD worker, creates a PDF of it.

like image pdf_number_drw.pdf.

 

Any idea of how can I change that, we need it to be ( number_REVA.pdf)

Screenshot 2024-05-17 134313.png

 

Thank you for your help in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
avillanueva
22-Sapphire II
(To:vicor3)
3 REPLIES 3
avillanueva
22-Sapphire II
(To:vicor3)

I second @avillanueva here - we have been using this method for quite a while. 

d_graham
17-Peridot
(To:vicor3)

@vicor3 

I’ve done a lot of this stuff with an afterloader method.

 

Do you know Java and are you able to write Java code for Windchill? If yes, you should be all set. Just write your code and point the afterloader property to your method.

 

You might also consider writing a utility to rename existing published PDFs per your naming convention. I would, why not fix the entire database. 

 

The afterloader property can be set to run any Java method you want to do anything you want.

By anything I mean anything that can be written in any Java code can be run. Maybe you want to rename a pdf or maybe you want to detect if it’s Mother’s Day and send mom a happy Mother’s Day email.  That’s how flexible this is. The sky’s the limit .😁

 

BTW, The same thing can be accomplished with a listener, but I’d go with the afterloader property, why not, that’s what it’s for.

 

David

Top Tags