list about to delete from layouts

list about to delete from layouts

Fleww
Advocate Advocate
623 Views
6 Replies
Message 1 of 7

list about to delete from layouts

Fleww
Advocate
Advocate

Hi, is there any lisp for something like this. I want this red flaged area get deleted for every single layout, so i can make something new and use lisp to copy to multiple layouts so I can easy make work done. Is there something that can do it for me? I always needed things like this for work.

Best regards, thank youlisp delete.png

0 Likes
Accepted solutions (2)
624 Views
6 Replies
Replies (6)
Message 2 of 7

ВeekeeCZ
Consultant
Consultant
Accepted solution

Try this.

Message 3 of 7

3wood
Advisor
Advisor
Accepted solution

You can also try this one

DELML.gif

Message 4 of 7

Sea-Haven
Mentor
Mentor

Maybe this 

 

 

(defun delsqlay ( / tabs lay tabname)
(setq tabs (vla-get-Layouts (vla-get-activedocument (vlax-get-acad-object))))
(vlax-for lay tabs
  (setq tabname (vla-get-name lay))
  (if  (/= tabname "Model")
  (progn
  (setvar 'ctab tabname)
  (command "pspace")
  (command "erase" "W" "100,100" "250,250" "")
  )
  )
)
(princ)
)
(delsqlay)

 

0 Likes
Message 5 of 7

paullimapa
Mentor
Mentor

Perhaps you should consider a different method of implementing the legend in your title block?

In the title block drawing include the legend in layers that can be frozen/turned off separate from the rest of the sheet.

Then xref attach or overlay the title block drawing file into layouts of drawings like the one you're showing.

Now any changes of the legend can be done in one drawing and that info is automatically reflected in every drawing that has it referenced into.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 6 of 7

Fleww
Advocate
Advocate
love you ❤️ perfect!
0 Likes
Message 7 of 7

Fleww
Advocate
Advocate
ty thats it ❤️
0 Likes