itacad Posted October 26, 2022 Share Posted October 26, 2022 Hi, looking for a solution to automatically create layouts starting from a grid in model space I found the PlotDWGarr.vlx lisp (here: https://www.cadforum.cz/en/download.asp?fileID=1172). I use the associated lisp LayDWGarr. I also saw a tutorial on how it works (here: https://www.youtube.com/watch?v=nNiIVZvqXLk). It seems to me that I have done everything correctly, the layout template (PlotArrTemplate), the succession of entry points etc. but the layouts that are generated always point only to box A01. I doubt it's the lisp that's malfunctioning, but I don't understand what I could have done wrong. What could be wrong with my file? Do you know of an alternate lisp that performs the operation I am trying to do? Thank you in advance GRIGLIA A3 A-O 1-30.dwg 1 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 27, 2022 Share Posted October 27, 2022 (edited) I have something but its not free but very cheap, it looks at the rectangs and makes a layout to match. It would need some custom changes to suit your needs as grids. The obvious 1st step is making the rectangs. I have made 40+ layouts in one go. Edited October 28, 2022 by BIGAL 2 Quote Link to comment Share on other sites More sharing options...
Steven P Posted October 27, 2022 Share Posted October 27, 2022 If you can create the layouts from your LISP but just need to adjust the rectangular view this might be a 'fix', will only really work for orthogonal rectangles. Double click in the view port, run this LISP, select the rectangle area to be shown in that view port. ;;https://forums.autodesk.com/t5/autocad-forum/having-trouble-with-the-lisp-that-zooms-a-rectangle-that-fits-in/td-p/9378532 (defun c:zvprect ( / a b e o) ;; I renamed this to fit my brain: 'z' - zoom, 'vp' - viewport, 'rect' - rectangle (if (setq e (car (entsel "\nSelect Rectangle : "))) (progn (setq o (vlax-ename->vla-object e)) (vlax-invoke-method o 'GetBoundingBox 'a 'b) (setq a (vlax-safearray->list a) b (vlax-safearray->list b) ) (vl-cmdf "_.zoom" a b) ) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
itacad Posted October 27, 2022 Author Share Posted October 27, 2022 I solved! obviously I was wrong ... Simply the layout (PlotArrTemplate) must not have the view locked! LayDWGarr works perfectly, highly recommended! Now I have to look for a "layout manager", (rename ... navigate ...) if you have one to recommend thank you Quote Link to comment Share on other sites More sharing options...
mhupp Posted October 27, 2022 Share Posted October 27, 2022 1 hour ago, itacad said: Now I have to look for a "layout manager", (rename ... navigate ...) if you have one to recommend thank you http://www.lee-mac.com/tabsort.html 1 Quote Link to comment Share on other sites More sharing options...
itacad Posted October 27, 2022 Author Share Posted October 27, 2022 How did I not think he didn't have a solution! My faith in Lee Mac is still not strong enough! Thanks! Quote Link to comment Share on other sites More sharing options...
Catherine M Posted December 20, 2023 Share Posted December 20, 2023 On 10/26/2022 at 8:20 PM, BIGAL said: I have something but its not free but very cheap, it looks at the rectangs and makes a layout to match. It would need some custom changes to suit your needs as grids. The obvious 1st step is making the rectangs. I have made 40+ layouts in one go. Where can I get the lisp? Thank you! Quote Link to comment Share on other sites More sharing options...
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.