Does anyone know if there is a way to programatically check with LISP to see if there are any entities on a given layout tab?
TIA
|
Does anyone know if there is a way to programatically check with LISP to see if there are any entities on a given layout tab?
TIA
Yes you can do that. What type of entities are you looking for? What parameters are you trying to fing. The easiest way is probably using ssget:
Code:(ssget (list (cons 410 "layout name ") (cons 0 "entity type ") ))
Hi Will,
Yes, that would work. We sometimes get drawings that have extra layout tabs that are not actually used for anything (I think A2K and up default to having two layout tabs and a model tab), and this allows me to do a bit of cleanup.
Thanks!
Keep in mind that although you can delete all layout tabs and their information, "Layout 1" will be recreated by autocad because it cannot be deleted permanently.