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

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

View solution in original post

Re: Drawing file splitting for pdf/dwg conversion

Thank you soo much. This helped a lot 🙂

Highlighted

Re: Drawing file splitting for pdf/dwg conversion

Can i put the desired name of each sheet in each sheet tab respectively in the drawing and then use that name for the pdf file for each sheet?

Re: Drawing file splitting for pdf/dwg conversion


@sparulekar wrote:

Can i put the desired name of each sheet in each sheet tab respectively in the drawing and then use that name for the pdf file for each sheet?


Hi,

I am sorry I do not understand your question.


Martin Hanák

Re: Drawing file splitting for pdf/dwg conversion

Can i use the circled names directly for naming the pdf sheets generated using the mapkey provided by you?

Re: Drawing file splitting for pdf/dwg conversion

 

Hi,

in case that you drawing contains following tabs

tabnames.png

you can use following mapkey to generate PDF file containing 1st drawing sheet

mapkey.png

Notes:

  • space in file name is forbidden
  • I guess you can use lowercase letter, only
  • create such mapkey make sense only in case that all drawings contain first list named CAVITY 1

 

 


Martin Hanák

Re: Drawing file splitting for pdf/dwg conversion

Alright thank you!!