Skip to main content
1-Visitor
May 11, 2010
Question

Drawings as PDF - Quick way to download them?

  • May 11, 2010
  • 95 replies
  • 33906 views
I have my drawings being published as a PDF by my Pro/e CAD worker. This is fine but in the end my users really need to be able to quickly download or email the PDF. Currently the only way to get the PDF out is to do the following:
1- Go to Drawing Details Page
2- Select "Display Representations List"
3- Click Actions>Save Representation
4- Save Representation out as .zip file to desktop
5- Extract PDF from .zip file and email etc

WAY to much work...does anyone know of a more efficient way to do this?

95 replies

1-Visitor
February 25, 2011

Is there a good intro to using Java with PDM link? I can figure out the code by the guides and the Internet, but just need to know how to get started.


Thanks

avillanueva
23-Emerald I
23-Emerald I
February 25, 2011
Sorry, had to change your subject there. I would start with the
Windchill Customizer's guide. What kind of queries are you looking to
run? You can run them from the Oracle level (SQL), Report Manager
(inside of Windchill) or Cognos. All do not require restart. You can
run a query via Java Code either through InfoEngine tasks or direct API
calls. Again, no restart needed. It depends on what information your are
looking for, what format you want it in and what the purpose is.


1-Visitor
February 25, 2011
jython is also a nice way to play with the api, and if you download
ext.tools from pdmteam.com you will find a bat file (wt.bat) and the
ListAll class to query lots of windchill related data from the command line.

hth, martin

1-Visitor
February 25, 2011

What I am trying to do is understand this Drawings to PDF Script. I am having an issues where it is not pulling the latest version. So I was trying to follow the code and run some tests. If I could figure out how to run a piece of the code at a time, It could help me fiigure out my issue.

1-Visitor
March 10, 2011

I am tring to print out the LC state on the download page.I am editing REPSAVEAS.jsp I keep getting errors on the property I am adding "epmdoc.getLifeCycleState();"


Is that not correct? I have tried


"epmdoc.getLifeCycleState() .getValue();


"epmdoc.getLifeCycleState(); .toString();


Thanks



1-Visitor
March 10, 2011

Hello Keith,

You should be able to use the same method that is used in the java class/code:

Add this line:

out.println("Life Cycle State: "+epmdoc.getLifeCycleState().toString());

If that does not work, add these 2 lines instead:

String LC_state = epmdoc.getLifeCycleState().toString();
out.println("Life Cycle State: "+LC_state);

Let me know ifeither works or not.

If it still work work, I am not sure, but you might need to flush the existing jsp_class, by flushing tomcat cache
(stop wc, stop tomcat, delete catalina folderin tomcat work folder &/or work folder, then restart tomcat & wc)

L Jett
cadjett@aol.com;datajett@aol.com (for quicker response)

1-Visitor
March 10, 2011
Thanks that did the trick.

I am still having an issue where the pop box shows released, but the drawing
is not the released version when using the Action menu Download to PDF.

1-Visitor
March 11, 2011
I have found an easy way to download PDF Objects out of Windchill including all markups etc. If you have the Adobe Support CD installed on your client (PTC's adobe acrobat viewer which gives you GREAT pdf markup tools) then you simply click in the drawing and hit CTRL+SHIFT+S and it will allow you to save the PDF out.

One of the really nice things I like about this is that it saves all of the default PDF bookmarks. The default bookmarks represent the views that are imported in from the drawing itself. You can easily cycle through those views and see the detail views, cross sections iirc.


[cid:image001.gif@01CBDFC9.71867990]

Steve Vinyard
Application Engineer
1-Visitor
March 11, 2011
Actually found that this works with Adobe Reader as well.

[cid:image001.gif@01CBDFCE.644101B0]

Steve Vinyard
Application Engineer
1-Visitor
May 2, 2012

Sorry to kick an old thread... but has someone implemented this in 10.0? It appears that in 10 the WVSactionsResource.rbinfo file is now .java, so the resource build command fails.


Thanks, Max