TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: dgpuertas on February 01, 2023, 04:53:39 AM
-
I want to use odbx (thanks a lot, lee for this amazing code http://www.lee-mac.com/odbxbase.html)
To delete all entities in a specific layer.
I can't use ssget
How can I do?
Thanks a lot.
-
Iterate over the blocks collection (which includes layouts), and then over the objects within each block (i.e. the objects in every block definition and layout), and use a conditional expression to test whether the object resides on the target layer, deleting if so.
Something like:
)
)
)
)
)
(LM:odbx '
(lambda ( doc
) (doit doc
"YourLayer")) nil t
)