Hello everyone,
I am working with a DWG file that contains 67 individual drawings, and I need to download each of these drawings as a separate PDF file. I already have the coordinates for each drawing specified. I'm looking for a way to automate this process, possibly using AutoLISP or another scripting method within AutoCAD.
For instance, some of the drawings are located at:
I'm seeking guidance on how to effectively create a batch process to export each drawing to a PDF based on its specific coordinates. Any advice on how to set up the script or references to similar scripts that have worked for others would be greatly appreciated.
Thank you in advance for your help!
Solved! Go to Solution.
Solved by deegeeceesG5996. Go to Solution.
Assuming:
All of the drawings are in modelspace.
All of the drawings have titleblocks.
All of the titleblocks are consistently named, or sized.
You could use a 'bounding box' to get the LL and UR (or UL and LR) corners for each titleblock in a selection set. You wouldn't need coordinates, just iterate through a selection set comprised of everything in modelspace.
If your titleblocks are actual blocks with names, use the block name as the search criteria, then get the bounding box for each block and set your window points for plotting.
If your titleblocks are not actual blocks, but do contain some sort of consistent entity such as a closed polyline that encompasses the drawing, get the size of that and use that as your search criteria.
Bounding Box by Lee Mac: