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

Drawings as PDF - Quick way to download them?

  • May 11, 2010
  • 95 replies
  • 33905 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
August 9, 2010
Guess I am hooked on this program. I didsome error checking.

Current attachment has updated jsp to throw error response for non Cad Doc that is DRW.

L Jett
1-Visitor
August 9, 2010
This email contained a .zip file attachment. Raytheon does not allow email attachments that are considered likely to contain malicious code. For your protection this attachment has been removed.

If this email is from an unknown source, please simply delete this email.

If this email was expected, and it is from a known sender, you may follow the below suggested instructions to obtain these types of attachments.

+ Instruct the sender to enclose the file(s) in a ".zip" compressed file, and rename the ".zip" compressed file with a different extension, such as, ".rtnzip". Password protecting the renamed ".zip" compressed file adds an additional layer of protection. When you receive the file, please rename it with the extension ".zip".

Additional instructions and options on how to receive these attachments can be found at:

1-Visitor
August 9, 2010
This email contained a .zip file attachment. Raytheon does not allow email attachments that are considered likely to contain malicious code. For your protection this attachment has been removed.

If this email is from an unknown source, please simply delete this email.

If this email was expected, and it is from a known sender, you may follow the below suggested instructions to obtain these types of attachments.

+ Instruct the sender to enclose the file(s) in a ".zip" compressed file, and rename the ".zip" compressed file with a different extension, such as, ".rtnzip". Password protecting the renamed ".zip" compressed file adds an additional layer of protection. When you receive the file, please rename it with the extension ".zip".

Additional instructions and options on how to receive these attachments can be found at:

1-Visitor
August 9, 2010
This email contained a .zip file attachment. Raytheon does not allow email attachments that are considered likely to contain malicious code. For your protection this attachment has been removed.

If this email is from an unknown source, please simply delete this email.

If this email was expected, and it is from a known sender, you may follow the below suggested instructions to obtain these types of attachments.

+ Instruct the sender to enclose the file(s) in a ".zip" compressed file, and rename the ".zip" compressed file with a different extension, such as, ".rtnzip". Password protecting the renamed ".zip" compressed file adds an additional layer of protection. When you receive the file, please rename it with the extension ".zip".

Additional instructions and options on how to receive these attachments can be found at:

1-Visitor
August 9, 2010
This email contained a .zip file attachment. Raytheon does not allow email attachments that are considered likely to contain malicious code. For your protection this attachment has been removed.

If this email is from an unknown source, please simply delete this email.

If this email was expected, and it is from a known sender, you may follow the below suggested instructions to obtain these types of attachments.

+ Instruct the sender to enclose the file(s) in a ".zip" compressed file, and rename the ".zip" compressed file with a different extension, such as, ".rtnzip". Password protecting the renamed ".zip" compressed file adds an additional layer of protection. When you receive the file, please rename it with the extension ".zip".

Additional instructions and options on how to receive these attachments can be found at:

1-Visitor
August 10, 2010

2 things:

1) Sorry about the zip attachment errors. I am sureI have seen or added zips to this site before, so I dont know why the errors are occurring. Its a possibility that it is because the zip contains a word doc, so I will switch to a pdf, after I update with the latest images strored with in.

It is of course related to Raytheon, so maybe ptcuser.org needs to check why Raytheon's email service rejecting zip attachments is causing errors to be directed & posted to the forum message area.

If they do review the reasons why, maybe they could remove those errors from this message/post.

2) I found a couple errors &/or added error checking jsp/java code again, so I have just attached the actual code/class.

From now on, I will just link the zip from my site:

http://www.datajett.com/windchill/wc_dev/dlRep_REPSAVEAS.zip

L Jett
cadjett@aol.com,datajett@aol.com

1-Visitor
August 10, 2010

Questions for the folks experimenting with this application:

1) What version of Windchill are you running ? (I'm running 9.0 M050)

2) In step 2, there is no existing WVSactionsResource.rbInfo file in the respective folder. There are just two files in the specified folder: actionsResource.rbInfo and wvsActionsRB.rbinfo

I triedcreating a WVSactionsResource.rbinfo filewith the lines specified, however I get a "Build Failed" error message when executing the ResourceBuild command, any ideas ?

This looks like a really neat application,Looking forward to trying it out.

1-Visitor
August 10, 2010


Question, are you checking for the WVSactionsResource.rbInfo file in the src
or wtcustom folder. I edited the one in the src folder, where some wc gurus
might suggest on using the wtcustom area. Maybe its in src & you copy to
wtcustom. I am not sure.

But I am on wc 9.1 M040 (I think on my vmware) & I am pretty sure I edited the
.rbInfo file in the src & it compiled, so I was happy there.

Maybe WVSactionsResource.rbInfo might only be wc 9.1, but you might be able to
place the resource bundle insert into any .rbInfo file, as long as you
reference that .rbInfo file in the
<wt_home>\codebase\config\actions\custom-actions.xml file:

But maybe in the wvsActionsRB.rbinfo file, add/insert/append:

repsave.REPSAVEAS.title.value=Download DRW PDF or PLT
repsave.REPSAVEAS.icon.value=download.gif
repsave.REPSAVEAS.tooltip.value=Download DRW PDF or PLT
repsave.REPSAVEAS.description.value=Download DRW PDF or PLT
repsave.REPSAVEAS.moreurlinfo.value=height=400,width=700, scrollbars=yes

wvsActionsRB.rbinfo might not be the right .rbInfo file, it could be the other
file you mentioned.

Then to test, from wc shell, run:

ResourceBuild com.ptc.windchill.enterprise.wvs.wvsActionsRB

But back up all your files before editing.

But a wc guru on here might know if that is the wrong thing to do or not.

=====================================================================

Then in the custom-actions.xml adjust the insert:

Original insert that I specified:

<objecttype name="repsave" class="wt.epm.EPMDocument" resourcebundle="com.ptc.windchill.enterprise.wvs.WVSactionsResource">
<action name="REPSAVEAS">
<description>Download DRW PDF or PLT</description>
<command windowtype="popup"" url="wtcore/jsp/repsave/REPSAVEAS.jsp"/">
</action>
</objecttype>

Instead Change to:

<objecttype name="repsave" class="wt.epm.EPMDocument" resourcebundle="com.ptc.windchill.enterprise.wvs.wvsActionsRB">
<action name="REPSAVEAS">
<description>Download DRW PDF or PLT</description>
<command windowtype="popup"" url="wtcore/jsp/repsave/REPSAVEAS.jsp"/">
</action>
</objecttype>

Hope this helps.

=====================================================================

Also, I just updated the zip on my site with latest jsp/java updates:

http://www.datajett.com/windchill/wc_dev/dlRep_REPSAVEAS.zip

The zip now contains a pdf for screen captures, instead of a doc.

L Jett
cadjett@aol.com,datajett@aol.com

1-Visitor
August 11, 2010

More further thoughts on what .rbInfo file to place the download PDF/PLTresource bundle insertinto.

Swamy Senthil had info about a customRB file (in past post: http://portal.ptcuser.org/p/fo/st/topic=16&post=87065)

He mentions adding insert like our new download insert:

repsave.REPSAVEAS.title.value=Download DRW PDF or PLT
repsave.REPSAVEAS.icon.value=download.gif
repsave.REPSAVEAS.tooltip.value=Download DRW PDF or PLT
repsave.REPSAVEAS.description.value=Download DRW PDF or PLT
repsave.REPSAVEAS.moreurlinfo.value=height=400,width=700, scrollbars=yes

His post shows "hm" folder with his custom-actions.xml insert:

<objecttype name="hm" class="" resourcebundle="hm.customRB">
<action name="baselinereport">
<command windowtype="popup"/">
</action>
</objecttype>

so maybe his customRB.rbInfo would be placed in folder: <wt_home>/src/hm

So if we have to create a customRB.rbInfo file & place it in an appropriate folder path, it might be:

<wt_home>/src/repsave (since our objecttype name is repsave).

The customRB.rbInfo contents would include:

repsave.REPSAVEAS.title.value=Download DRW PDF or PLT
repsave.REPSAVEAS.icon.value=download.gif
repsave.REPSAVEAS.tooltip.value=Download DRW PDF or PLT
repsave.REPSAVEAS.description.value=Download DRW PDF or PLT
repsave.REPSAVEAS.moreurlinfo.value=height=400,width=700, scrollbars=yes

Then change custom-actions.xml insert to:

<listofactions>
<objecttype name="repsave" class="wt.epm.EPMDocument" resourcebundle="repsave.customRB">
<action name="REPSAVEAS">
<description>Download DRW PDF or PLT</description>
<command windowtype="popup"" url="wtcore/jsp/repsave/REPSAVEAS.jsp"/">
</action>
</objecttype>
</listofactions>

Then maybe to compile, you would run from Windchill shell:

ResourceBuild repsave.customRB

Swamy Senthil, if you are viewing, let me know if I am off.
Or anybody else that knows this area better.

L Jett

1-Visitor
August 11, 2010
It should meet the requirements.



Thank you and have a great time.

Best Regards

Swamy Senthil

Principal Solutions Architect

973 216 0456(M); 973 324 2729(W); 866 908 6561(F)

Work Email: swamy.senthil@swasen.com

LinkedIn Profile: