Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Journal: Retrieve currently displayed sheet 1

Status
Not open for further replies.

hurley710

Automotive
Feb 4, 2009
59
0
0
US
I have written a journal that automates exporting .pdf drawings to a specified location. As of now, I just export the "current display" (doing a view -> fit beforehand). However, I need to revise this to export the sheet, rather than the display. How can I revise this to automatically export a .pdf of the currently displayed sheet? I don't want to have to prompt an input box to type the name of the desired sheet. Thanks in advance.
 
Replies continue below

Recommended for you

I think this might help you out.

This Journal file was writen by Cowski, I think. I modified it a little to suit our needs by removing "wip" at the end of our currently worked on dwgs. But this modification will have no affect on any other files that you have.

If you have 2 sheets, you will get a multiple page PDF.

Try it out, we use this file all the time.

Allen
 
 http://files.engineering.com/getfile.aspx?folder=f95cf5ba-4bb5-41c9-a0b6-eaba41cf8bf5&file=export_pdf_100.vb
Hey Guys,
I need to "batch" export the drawings of all components in an assembly or folder. Do you know of a way to do this?

NX6

James
 
hi

I have made a journal to automate pdf export.

Just run and read.....

(be sure where AcroRd32.exe is located - must be placed in
"C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe),
or edit last section in *.vb file
-------------------------------------------

Feature´s:
1.export of only current drafting in workpart
2.exported pdf always stored in the folder where current NX part is.
3.name of pdf is "NX partname" AND "drafting name"
4.pdf is opening after export
 
 http://files.engineering.com/getfile.aspx?folder=8b85effd-bae1-4155-b0c3-e1e3a00fd3e2&file=SortHvid_Pdf_Export_Work_Dir_PartName_DrawName.vb
Thanks lklo for the reply & the vb attachment.
I ran into a problem though. I'm running Adobe 9.0 & can not find a file named "AcroRd32.exe" anywhere on my hard drive.
Do you know what file I should look for with 9.0 ?

Jmaes
 
hello jkcone

1.Are you sure that it is Adobe "READER" you have installed.?
2.Are you sure that your adobe installation dir is in
"Program Files" and not "Programs"
3.If you not have the "READER" installed,but someone other adobe application, you have to find that Acro**.exe ,that can open the pdf file.
4.It is indifferent where your Acro**.exe file is placed.
5.Be sure to have the correct entire path to that exe file.

I´M sure that you can figure it out.

lklo
 
Thanks for your reply lklo, I will look again.
I deleted the 3rd through the 8th lines from the end. It works nicely for a single export situation. I really didn't want it to launch Adobe every time anyway.

My main objective is to do a "batch" export to PDF.

James
 
hello "albates1972".

In this thread you uploaded a modified journal of script
,that original was build to export dwg via cgm to dxf.

Do you still have the original - Can I have a copy .

If you wish - I have written a nice script to generate pdf,
you can have it .

lklo
 
Status
Not open for further replies.
Back
Top