Convert DWG to PDF

Good Morning,
I would like to see if anyone can help me, I would like to get all the DWG from a folder and its subfolders and convert it to PDF, would this be possible to automate? there are about 600 files.

Hi @igor.carvalho,

By “convert to PDF”, do you mean plot?

Hi @mzjensen
that’s right, I have 600 dwg files that I need to convert to pdf

Model space or paper space? One sheet size or many? Always with the same CTB or is there a mix?

The number of questions to your question makes this a very difficult thing to help with; wouldn’t sheet set manager and or/publish command work just as well?

2 Likes

Sheet set manager is probably the best way to go. Like Jacob says, it depends on if there are multiple CTBs, sheet sizes, ect. If I had a large amount of dwg files to organize according to plot styles and such prior to setting up sheet set manager I may consider using shutil for python: shutil — High-level file operations — Python 3.10.4 documentation

Honestly I’d probably organize them by plot style in file directories and create large sheetsets with all of the files according to plot style. Then run large plot operations. Once in PDF form I would separate the PDFs by looking for cover sheets with OCR and a PDF python library. Working with PDFs in Python: Reading and Splitting Pages

Not sure if this would be the best for you, this is just how I would initially approach the problem. There is probably a simpler way and I’m just overcomplicating :joy:

3 Likes

Hola amigo igor.
One option to do this is Batch Plot, but the Page Setup in the files has to be configurated previously


If you do not have the files whit the pagesetup configurated the best way of do this with out using phyton is whit the old fashion scripts (.scr) simple file text that emulate instructions in the command line, but in your case you will have to know the name of layouts in each file, and the paper size of each one, and all the others configurations, there is an ancien tool of autodesk to allows to aply one script to multiple files, the name is ScriptPro.exe

And to finish if you want to play whit dynamo doing this, there is a very interesting node in Camber Package (Thanks for the package @mzjensen by the way) to allows the user simulate scripts whit out need to create text files, the node is Document.SendComand, but you have to do to much atention in the spaces and jump lines, the old fashion Scripts is very sensitive about this.

I take the opportunity, to ask to the especialist: Will be to dificult to create a node library to manage all the plot an page set up settings, all the .pc3, pmp, plot styles and everything else, because right now is not an easy task and most of the time is manual and old fashion, i think is time to modernize this tool isn’t what do you think abou it??

1 Like