Jump to content

Recommended Posts

Posted

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

  • Replies 46
  • Created
  • Last Reply

Top Posters In This Topic

  • reza

    23

  • maratovich

    8

  • BIGAL

    6

  • mostafa badran

    5

Top Posters In This Topic

Posted Images

Posted

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

Posted

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

Posted (edited)

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
Posted (edited)

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
Posted

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"
.
.
.
.
.
)

Posted

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?

Posted

You need to follow the Forum rules when posting code.

Posted

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

Posted

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

Posted

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.

Posted

I thank all of people to solve my problem

Specially BIGAL because he tolerate my nervousness :)

Posted

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

Create hands .pc3

1x1

1x2

...

10x1

...

...

850x140

....

12345x54321

Posted

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

Write your ultimate goal.

Posted

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. :)

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...