Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Batch Download Multiple Drawings from a DWG File into PDFs Using Coordinates

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
heuiy
112 Views, 2 Replies

How to Batch Download Multiple Drawings from a DWG File into PDFs Using Coordinates

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:

  • Drawing 1: Coordinates (-10133, 158, -9297, 740)
  • Drawing 2: Coordinates (-4036, -450, -3200, 132)
  • Drawing 3: Coordinates (-10087, -4455, -9251, -3873)
  • ... (more coordinates for other drawings)

 

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!

2 REPLIES 2
Message 2 of 3
paullimapa
in reply to: heuiy

This thread has some solutions 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 3
deegeeceesG5996
in reply to: heuiy

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:

https://lee-mac.com/boundingbox.html

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost