SaveAs .dwg filename when saving multiple sheets

Now it saves the differente sheets as:

01_drawing.dwg

02_drawing.dwg

03_drawing.dwg

which is not good. Can it be changed to

drawing_01.dwg

drawing_02.dwg

drawing_03.dwg

from somewhere?

Or is there any reasonable way to get them into one file? It's not good that the first drawing sheet is in Model sheet in the dwg and the rest are are in Sheet2, Sheet3.

SolidworksDrawings And Detailing
Answers 23
DG
DG 2014-04-23 Best Answer

Yes via a macro but that would mean each sheet will different sheet. Check the macro in this post https://forum.solidworks.com/message/334569#334569 and if that works per your need then I can tweak the macro to your requirements.

AA
AA 2014-04-25

I tried the Export Drawing Sheets As DWG_B.swp macro recorded at 04/23/14. The result was this:

comment imagecomment image
DG
DG 2014-04-25

O. So how you need the file names and where you need the files to be saved:

1 At same location

2 At a chosen location

3At Desktop

AA
AA 2014-04-25

2. At chosen location.

And btw. I have a macro from our CAD-support team which exports drawings to dwg and pdf files into specific folder. But that has the same problem as this. Would it be big work to combine these macros?

DG
DG 2014-04-25

Can you attach one drawing file along with a part to test the macro. Also what name you need of the output DWG files.

AA
AA 2014-04-25

How can I attach other files than picture/video? Can I send those to via email? The output dwg/pdf files are filenames.

DG
DG 2014-04-25

Please use "advanced editor" in case you want to attach any files.Click on reply and then click "use advanced editor".

AA
AA 2014-04-25

oh.   there it is. Now there is a file attached.

DG
DG 2014-04-25

Please check this. Make sure your drawing has a revision property and value assigned to it.

AA
AA 2014-04-25

Results were like this:

Theres also shot from assembly properties.

and maybe edit the filename into format "FilenameRevision_Description1.dwg" ?  For example J5L001000B.dwg

I think I could do it also myself. I have done little VB stuff.

comment imagecomment image
DG
DG 2014-04-25

So you want to pull the revision information from part/assembly used in that drawing.

For removing those 00, 01, etc. from the file name, you can either set the DXF/DWG output options to export active sheet only. OR I can also set this up in the macro.

AA
AA 2014-04-29

Yes I would like to get the Revision info from part/assembly. And move the number 00,01... from the beginning of filename into end. There are also property "Description1" in the part and assembly. That could also be in the filename. So the filename is in this format:

"filename" "revision" _ "description1" "pagenumer"

for example J5L123456C_cabinet_00.dwg (and cabinet as Description1).

And how the macro will work if there is only one sheet in the drawing. So it doesn't try to add the 00,01.. in the beginning of filename?

DG
DG 2014-05-01

Can you attach one part and its drawing to test the macro.

AA
AA 2014-05-12

Ok, here's a one sample part and drawing.

DG
DG 2014-05-19

Ari, can you try this macro.

AA
AA 2014-05-21

Great! Now it named the sheets correctly. It saved the files into same folder than original files, what I need to change to make it promt the folder?

DG
DG 2014-05-21

Try this one

AA
AA 2014-06-26

Sorry for the delay. But its been very busy times in the company. I tried that macro, and it runs fine! Except, it does not ask the folder where to save the dwg-files.

DG
DG 2014-06-30

Check this one.

SF
SF 2014-07-21

Hi,

At work the are still using 2012. I would like to be able to save multiple sheets files to a dwg individual files with the names in the sheet tab. Any way you could help e with that?

DG
DG 2014-08-06
BT
BT 2014-08-06

Do the standard options not give you the desired result of saving all sheets to one DWG file?

And even avoid placing one in model space.

comment imagecomment image
AA
AA 2014-08-06

Thank you very much! Now it worked!