Skip to main content
15-Moonstone
November 5, 2013
Question

Watermark rev of wt.part on the published drawing

  • November 5, 2013
  • 32 replies
  • 20183 views

I am hoping somebody already figured it out, and it is not a costly customization...

32 replies

1-Visitor
April 22, 2014

I attached new source, that has a better date format.

createdDate = WTStandardDateFormat.format(epmDRW.getCreateTimestamp(), 22, Locale.getDefault());

DATE [java util.date]: 2014-02-25 02:13:46.0
DATE (dueDate3): 2014-02-25 02:13:46 CST
DATE (dueDate4): 25 Feb 14 02:13
DATE (dueDate22): 02/25/2014
DATE (dueDate19): 2/25/14 2:13 AM
DATE (dueDate20): 2/25/14
DATE (dueDate21): 2:13 AM
DATE (dueDate25): 2014-02-25 02:13:46
DATE (dueDate26): 2014-02-25

I like 02/25/14 best, but its not an option. 20 is close, but it drops the 0 of 02.

Which would others here, like most. I chose 22.

I also forgot to mention that the site.xconf insert for this CustomCadConvert usage & compile command are below & 1st few lines in source.


// ant -f bin/tools.xml class -Dclass.includes=ext/publishing/CustomCadConvert.java


/*


site.xconf entry:


targetFile="codebase/wvs.properties"
value="ext.publishing.CustomCadConvert,useworkerdownload\=$(wt.home)$(wvs.dir.sep)auth.properties"/>

*/

Larry Jett

1-Visitor
April 23, 2014

I hate to keep doing this, but I updated the code again (attached):

I changed the DATE label to Created On.
I changed the Created On Date format from MM/dd/yyyy (I think yyyy) to yyyy-MM-dd HH:mm z
I changed LC STATE label to State.

All these changes to be the same as what is on the objects windchill detail page, for label & date format.

State: Design
Created On: 2014-02-05 13:26 CST

Larry Jett

1-Visitor
September 8, 2016

Just a quick note if someone is trying to use this today.  If you are using the publish additional files feature (i.e. let Creo drawings publish as a PLT, and also publish a PDF), those additional files are stored in a compressed (zip format) file with the extension PVOA.  You will need to modify the cadConvert to look for a PVOA file, check to see if a PDF is in the PVOA file, extract the PDF, watermark it, and put it back into the PVOA file.