Replying back to my post to share my solution.
I found something online that was close to what I needed and then modified it to fit my exact situation - attached is my lisp file. You will need to modify a few bits of code for it to work for your blocks/situation. I tried to mark the lines of code unique to me as best I could. The major lines you need to change to get it to function at all are lines 77, 97 (and following lines if multiple blocks), 103 (to 110 and line 123 if not using page number). I left notes at these areas for what you need to do.
This script allows you to select blocks you want to plot from model space, and it will either plot them to PDF or any custom printer settings you want. There are two commands in this file - BATCHPRINT and BATCHPRINTOPTIONS. As you probably guessed, BATCHPRINTOPTIONS is settings for the main BATCHPRINT command.
To use the BATCHPRINT command:
- Activate the command with BATCHPRINT.
- Select the title block(s) you want to print and just hit enter. (Your selection can be one big crossing window over the entire drawing set. The command will filter the selection to just the blocks you listed in the lisp file.)
For the blocks you want to print; the script just gets the extents of the block for the plot window. So basically, in your block, there should probably be a non-plot layer rectangle surrounding the block to make up the print region. Otherwise, the edges of the block are used instead which may only show half of any thickness you have in the lines.
The settings in BATCHPRINTOPTIONS are as follows.
- PDF – Prints to PDF (Default)
- Paper size
- 24 x 36 (Default)
- 11 x 17
- 8.5 x 11
- Orientation
- Landscape (Default)
- Portrait
- Scale
- Fit (Default)
- Full-Scale (1=25.4 aka: 1" = 25.4mm)
- Custom – this lets you set whatever options you want with the normal plot settings dialog.
If you set the print options to “Custom”, the next time you use the BATCHPRINT command, it’ll prompt you to set the print settings with the normal plot dialog.
NOTE: Once you set your settings with the plot dialog, DO NOT CLICK “OK”. Instead click “Apply to layout” and then “Cancel”. I know it sounds counter intuitive to click cancel, but that’s because you aren’t actually using that dialog to plot, only to change the settings. If you hit OK, it will do an unintended plot. There is a warning prompt before the print settings dialog as a reminder.
Also note: Using the custom print setting will only ever print to fit and it wont honor any custom scale you set. There is a bug in AutoCAD that doesn’t update the printer settings you can read in a lisp program, so there is no way to retain the value that I know of.
Hopefully I explained everything well enough. If not, let me know if you have any questions.