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

Drawing file splitting for pdf/dwg conversion

SOLVED
Garnet

Drawing file splitting for pdf/dwg conversion

Hi
I have a drawing file which has about 15 sheets in it.
Each sheet has been named according to the company standards.
I need to convert each of these sheets into a separate dwg/pdf format with the name already given to sheets.
But when i convert the drawing file, all the sheets get converted into a single pdf file consisting of pages equal to the number of sheets in the drawing.
I need a separate pdf file for each sheet along with the name which has been already provided to that particular sheet in the drawing file.
Manually doing this is very very yime consuming. Im looking for an easier way to get it done
Is it possible??
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Drawing file splitting for pdf/dwg conversion


@sammy1994 wrote:

Here is my config.pro file(mapkey PDF @MAPKEY_LABELPDF EXPORT)


Hi,

your PDF mapkey is related to specific drawing (it contains specific file names). User cannot apply it on any drawing.

Note: I did not find any simple procedure how to export drawing sheet names from Creo to text file.

Below I try to explain different approach.
---
Step 1: mapkeys
---
xx01 exports 1st sheet into drw0001_01.pdf file
xx02 exports 2nd sheet into drw0001_02.pdf file
... and so on

 

pdf01 is used for 1-sheet drawing
pdf02 is used for 2-sheet drawing
pdf03 is used for 3-sheet drawing
... and so on

 

Example:
> open 3-sheet drawing
> run pdf03 mapkey
> drw0001_01.pdf, drw0001_02.pdf, drw0001_02.pdf files are created

 

mapkey xx01 ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdModelSaveAs` ;\
mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\
mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_617`;\
mapkey(continued) ~ Update `file_saveas` `Inputname` `drw0001_01`;\
mapkey(continued) ~ Activate `file_saveas` `OK`;\
mapkey(continued) ~ Select `intf_profile` `pdf_export.pdf_sheets_choice` 1 `range`;\
mapkey(continued) ~ Update `intf_profile` `pdf_export.pdf_range` `1`;\
mapkey(continued) ~ Activate `intf_profile` `pdf_export.pdf_launch_viewer` 0;\
mapkey(continued) ~ Activate `intf_profile` `OkPshBtn`;

mapkey xx02 ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdModelSaveAs` ;\
mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\
mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_617`;\
mapkey(continued) ~ Update `file_saveas` `Inputname` `drw0001_02`;\
mapkey(continued) ~ Activate `file_saveas` `OK`;\
mapkey(continued) ~ Select `intf_profile` `pdf_export.pdf_sheets_choice` 1 `range`;\
mapkey(continued) ~ Update `intf_profile` `pdf_export.pdf_range` `2`;\
mapkey(continued) ~ Activate `intf_profile` `pdf_export.pdf_launch_viewer` 0;\
mapkey(continued) ~ Activate `intf_profile` `OkPshBtn`;

mapkey xx03 ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdModelSaveAs` ;\
mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\
mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_617`;\
mapkey(continued) ~ Update `file_saveas` `Inputname` `drw0001_03`;\
mapkey(continued) ~ Activate `file_saveas` `OK`;\
mapkey(continued) ~ Select `intf_profile` `pdf_export.pdf_sheets_choice` 1 `range`;\
mapkey(continued) ~ Update `intf_profile` `pdf_export.pdf_range` `3`;\
mapkey(continued) ~ Activate `intf_profile` `pdf_export.pdf_launch_viewer` 0;\
mapkey(continued) ~ Activate `intf_profile` `OkPshBtn`;

mapkey xx04 ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdModelSaveAs` ;\
mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\
mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_617`;\
mapkey(continued) ~ Update `file_saveas` `Inputname` `drw0001_04`;\
mapkey(continued) ~ Activate `file_saveas` `OK`;\
mapkey(continued) ~ Select `intf_profile` `pdf_export.pdf_sheets_choice` 1 `range`;\
mapkey(continued) ~ Update `intf_profile` `pdf_export.pdf_range` `4`;\
mapkey(continued) ~ Activate `intf_profile` `pdf_export.pdf_launch_viewer` 0;\
mapkey(continued) ~ Activate `intf_profile` `OkPshBtn`;

mapkey pdf01 %xx01
mapkey pdf02 %pdf01;%xx02
mapkey pdf03 %pdf02;%xx03
mapkey pdf04 %pdf03;%xx04

---
Step 2: renaming PDF files
---
Open File Explorer window to get access to exported PDF files.

In Creo drawing:
1.] press and hold SHIFT key
2.] select tab of 1st sheet
3.] select tab of last sheet
4.] press right mouse button and select Setup command
5.] Sheet Setup window opens, you can copy sheet names in it and use them to rename PDF files in File Explorer.

 


Martin Hanák
16 REPLIES 16
Highlighted

Re: Drawing file splitting for pdf/dwg conversion

Hi,

yes it is possible.

Task no.1 for you: create series of mapkeys which save sheet no.1 into PDF, sheet no.2 into PDF, ...and so on (in PDF export dialog you can enter sheet number).

 


Martin Hanák

Re: Drawing file splitting for pdf/dwg conversion

Oh thank you, i will do the task 1

In the export dialog box was i supposed to enter the sheet no. in the circled region?

Re: Drawing file splitting for pdf/dwg conversion


@sammy1994 wrote:

Oh thank you, i will do the task 1

In the export dialog box was i supposed to enter the sheet no. in the circled region?


Yes, you are right !


Martin Hanák

Re: Drawing file splitting for pdf/dwg conversion

In toolkit you can automate this function

 

1. Get the current model

2. Get Sheet count from drawing model

3. Use for loop to iterate drawing sheets & Set current Sheet

4. User ProPDFExport & Set the Export Option to current Sheet

 

 

Re: Drawing file splitting for pdf/dwg conversion

Actually i have never used toolkit and im not a programmer.
I have just some basic knowledge of python

Re: Drawing file splitting for pdf/dwg conversion

I have completed the 1st task assigned by you.
Now what should i do next?

Re: Drawing file splitting for pdf/dwg conversion


@sammy1994 wrote:
I have completed the 1st task assigned by you.
Now what should i do next?

Hi,

please upload config.pro file containing your mapkeys.

Also please tell me what Creo version do you use.


Martin Hanák

Re: Drawing file splitting for pdf/dwg conversion

Okay
Creo 3.0

Re: Drawing file splitting for pdf/dwg conversion

Here is my config.pro file(mapkey PDF @MAPKEY_LABELPDF EXPORT)