Jump to content
reza

Plot user paper size

Recommended Posts

reza

Dear ReMark and BIGAL,

 

 

First of all, I'd like to apologize for my poor English. At the moment, a colleague of mine is helping me with this thread.

 

 

The main question here is not why, but how? Suppose there are indefinite layout areas in a single DWG file and I have defined a single custom paper, namely CP1. So, what I need to do with my lisp in each run, is to assign ΔX and ΔY of user-picked points of a layout block as dimensions of CP1.

new block.dwg

Share this post


Link to post
Share on other sites
maratovich

I have a solution, but it does not lisp, is an independent program.

Share this post


Link to post
Share on other sites
reza

could you explain about that? or how to access this program.

Share this post


Link to post
Share on other sites
maratovich

https://www.kdmsoft.net/revers.html

See example, it is possible for you.

The program is looking for a polyline.

It prints the specified printer and paper size.

Can create layouts of rectangles found.

And much more.

Edited by maratovich

Share this post


Link to post
Share on other sites
reza

thx a lot maratovich

this program is very complete and very interesting but i want very simple lisp code to do this (change paper size in each run).

is this possible?

Edited by reza

Share this post


Link to post
Share on other sites
SLW210

Please read the Code Posting Guidelines and edit your Code to be included in Code Tags (Not HTML Tags).[NOPARSE]

Your Code Here[/NOPARSE]

=

Your Code Here

Share this post


Link to post
Share on other sites
reza

thank you for guidance me

(setq p1 (getpoint "\nPick first corner : "))
(setq p2 (getcorner p1 "\nPick the opposite corner : "))
(setq deltaX (abs (- (car p1) (car p2))))
(setq deltaY (abs (- (cadr p1) (cadr p2))))
;;;;;;;;(setq str (strcat (itoa (fix deltaX)) "*" (itoa (fix deltaY))))

(commnad "-plot"
"yes"
"model"
"plot1.pc3"
"CP1"
"millimeters"
"landscape"
"no"
p1
p2
"1=1"
.
.
.
.
.
)

Share this post


Link to post
Share on other sites
reza

Hi SLW210 :

are you During my problem ?

could you help me

i want to do this (change paper size in each run).

is this possible?

Share this post


Link to post
Share on other sites
SLW210

You need to follow the Forum rules when posting code.

Share this post


Link to post
Share on other sites
BIGAL

I do not see a problem just use mview in a layout I think you need to learn more about multile viewports in one layout and using scales of viewports.

Screen Shot 11-17-16 at 12.50 PM.PNG

Share this post


Link to post
Share on other sites
reza

my dear bigal

I've worked from autocad r11 until now , and I have not any claim In this case

one question :

I need to do with my lisp in each run, is to assign ΔX and ΔY of user-picked points of a layout block as dimensions of CP1.

and one answer :

possible or impossible

Share this post


Link to post
Share on other sites
BIGAL

This question has been asked again in another post today so I am thinking about it if I can find some time.

 

As I have said previously it can be done manually very quickly using zoom centre and a plot scale requires only 1 pt but you then drag the mview limits to suit.

 

Are you metric or feet.

Share this post


Link to post
Share on other sites
reza

I thank all of people to solve my problem

Specially BIGAL because he tolerate my nervousness :)

Share this post


Link to post
Share on other sites
maratovich

You need to create the 10,000 non-standard formats. :)

Create hands .pc3

1x1

1x2

...

10x1

...

...

850x140

....

12345x54321

Share this post


Link to post
Share on other sites
reza

I went into the black hole space

Share this post


Link to post
Share on other sites
maratovich

Why do you need a lot of non-standard formats?

Write your ultimate goal.

Share this post


Link to post
Share on other sites
reza

I assure you the ultimate goal does not concern nuclear energy and its associate industries in any way! ;)

 

The purpose here is to print different parts of a DWG file (which are numerous) in PDF format as fast and as convenient as possible without any unnecessary paper waste when printing in physical plotters. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×