Jump to content

Create Layout from a grid in model space


itacad

Recommended Posts

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

 

 

3.png

1.png

2.png

GRIGLIA A3 A-O 1-30.dwg

  • Like 1
Link to comment
Share on other sites

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.

 

image.png.3bd66202cdfcd4a18db8019dedbb6961.png

 

I have made 40+ layouts in one go. 

 

image.thumb.png.c27c2b9c205d181ac43042eac9c2a6e0.png

 

 

Edited by BIGAL
  • Like 2
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 year later...
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.

 

image.png.3bd66202cdfcd4a18db8019dedbb6961.png

 

I have made 40+ layouts in one go. 

 

image.thumb.png.c27c2b9c205d181ac43042eac9c2a6e0.png

 

 

Where can I get the lisp? Thank you!

Link to comment
Share on other sites

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