Drawing file splitting for pdf/dwg conversion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Drawing file splitting for pdf/dwg conversion
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??
Solved! Go to Solution.
- Labels:
-
General
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Now what should i do next?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Creo 3.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you soo much. This helped a lot 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can i use the circled names directly for naming the pdf sheets generated using the mapkey provided by you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
in case that you drawing contains following tabs
you can use following mapkey to generate PDF file containing 1st drawing sheet
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Alright thank you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have just some basic knowledge of python
