Message 1 of 8
How to select and remove entities below a certain z

Not applicable
01-29-2015
01:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys,
I'm just learing some basic expression to automate some routines using AutoLisp, but stuck in one issue. I'd like to remove entities below a certain z level and tried to find out some solutions in this forum, but no success.
My current code seems like
(defun c:test()
(command "._ucsicon" "off" "._ucs" "view")
(setq objekte (ssget "_X" '((0 . "3DSOLID")(-4 . "*,*,<")(10 0.0 0.0 10.0))))
(if objekte
(command "._erase" objekte "")
)
(command "._ucs" "p" "._ucsicon" "on")
)
All 3D entities are below z=1 so I expected I could delete everything with z =10. But nothing was selected with ssget function. Can you help me out?
Thanks in advance.
Best,
Yun