Jump to content

AutoLISP to print Custom Paper Size dynamically from Polyline/Layout geometry (ex: a3 extended,...)


Recommended Posts

Posted

Body: Hi everyone,

I am looking for a LISP routine or a workflow to automate the printing process for non-standard sheet sizes.

The problem: I frequently work with layouts of varying dimensions. Currently, I have to manually create a new "Custom Paper Size" in the Plotter Configuration (.pc3) every time I encounter a new size, which is very time-consuming.

My goal: I need a Lisp that allows me to select a rectangular area (or a closed Polyline) representing the plot boundary. The routine should then:

Detect the width and height of the selection.

Automatically generate (or set) a matching custom paper size for the PDF plotter.

Set the plot scale to 1:1 (1 mm = 1 drawing unit).

Has anyone achieved this automation or can suggest a workaround?

Thanks in advance!

222.png

Posted

@cando I think you will find this is the big drawback of the way AutoCAD (and all of its clones) creates page setups and sizes.

 

This wasn't really a problem when everything was actually printed onto standard paper sizes, but now we have PDFs, which can have much more varied page sizes. This highlights the limitations of the way printing is achieved in AutoCAD.

 

I'm not saying there is anything wrong with the way AutoCAD prints; it just has limitations with custom pages.

 

I think it is exacerbated with there being very limited access programmatically to the whole print/page setup.

 

As you can appreciate, there is a lot of flexibility in the setup of multiple pages and scales the way it works at the moment, so someone would have to think long and hard about another way of achieving everything you have already and then incorporating another way of having custom pages into it.

 

Sorry if that isn't what you wanted to hear.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...