Search the Community
Showing results for tags 'layout origin coordinates'.
Found 2 results
LISP Request - Simple - Change UCS rotation in multiple layouts
eyeofnewt555 posted a topic in AutoLISP, Visual LISP & DCLHey guys! I have several drawings, each containing multiple layouts/viewports that need UCS to be set to World. It'd be great if I could open a drawing, run the lisp, and have a dialog box pop up asking which layouts I wanted to apply it to (similar to the interface for Lee Mac's Copy to Layout routine) I haven't done any VBAs bf, but I'm thinking that might be an option, since it's a pretty simple command. Any help would be appreciated! Thanks, Liz
Find Coordinates in ModelSpace Corresponding to Upper Left Corner of PaperSpace
Jay Chan posted a topic in AutoLISP, Visual LISP & DCLI want to use AutoLISP to determine the coordinates (in term of Model Space) that is corresponding to the upper left corner of a paper-space layout. I see that the upper left corner of the paper-space layout is (0'-0", 0'-0", 0'-0"). But that is just the coordinates in term of the paper-space. That is not the coordinates in term of the Model Space. I want to find out the XY-coordinates in the Model Space corresponding to that (0'-0", 0'-0", 0'-0") in the paper-space. By the way, the paper space layout is created using default setting and it is "Scale to Fit". What I am trying to do is to use EXPORTLAYOUT command to export the paper-space layout into a DWG file. This causes the resulted DWG file to become very small (because EXPORTLAYOUT converts all the 3D objects into 2D). Then I can upload it to AutoCAD-360 without running the risk of exceeding the file size limit in AutoCAD-360. When the user draws some lines in the small DWG file using AutoCAD-360, I want to be able to use an AutoLISP program to automatically copy and paste the lines from that small DWG file onto the master drawing. Obviously I want the lines to be copied to the right spot. Unfortunately, the coordinates in the small DWG file is different from the master drawing. Therefore, the lines are pasted onto the wrong spot. The way to fix this problem is to find out how the paper-space layout is offset from the Model Space. Actually, not only the coordinates in the paper-space layout is different from the Model Space, its scale is also different. Luckily I find a simple way to find out the XY-scale-up-factors to scale the lines back to the original size. Now, I only need to determine the coordinates of the lines. I have spent many days trying to figure this out -- no luck. And I have searched the web without any success. Please help. Thanks. Jay Chan