reza Posted November 15, 2016 Author Posted November 15, 2016 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 Quote
maratovich Posted November 15, 2016 Posted November 15, 2016 I have a solution, but it does not lisp, is an independent program. Quote
reza Posted November 15, 2016 Author Posted November 15, 2016 could you explain about that? or how to access this program. Quote
maratovich Posted November 15, 2016 Posted November 15, 2016 (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 December 21, 2017 by maratovich Quote
reza Posted November 15, 2016 Author Posted November 15, 2016 (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 November 15, 2016 by reza Quote
SLW210 Posted November 16, 2016 Posted November 16, 2016 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 Quote
reza Posted November 16, 2016 Author Posted November 16, 2016 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" . . . . . ) Quote
reza Posted November 16, 2016 Author Posted November 16, 2016 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? Quote
SLW210 Posted November 16, 2016 Posted November 16, 2016 You need to follow the Forum rules when posting code. Quote
BIGAL Posted November 17, 2016 Posted November 17, 2016 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. Quote
reza Posted November 19, 2016 Author Posted November 19, 2016 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 Quote
BIGAL Posted November 20, 2016 Posted November 20, 2016 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. Quote
BIGAL Posted November 20, 2016 Posted November 20, 2016 Check this post http://www.cadtutor.net/forum/showthread.php?98914-creating-layout-views Quote
reza Posted November 20, 2016 Author Posted November 20, 2016 I thank all of people to solve my problem Specially BIGAL because he tolerate my nervousness Quote
reza Posted November 21, 2016 Author Posted November 21, 2016 (edited) Hi BIGAL please see attachment : source pic1.rar source pic2.rar Edited November 21, 2016 by reza Quote
maratovich Posted November 21, 2016 Posted November 21, 2016 You need to create the 10,000 non-standard formats. Create hands .pc3 1x1 1x2 ... 10x1 ... ... 850x140 .... 12345x54321 Quote
maratovich Posted November 21, 2016 Posted November 21, 2016 Why do you need a lot of non-standard formats? Write your ultimate goal. Quote
reza Posted November 22, 2016 Author Posted November 22, 2016 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. Quote
Recommended Posts
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.