- (defun c:tt()
- (setq ent (entlast))
- (command "_rectang")
- (while (= 1 (getvar "cmdactive"))
- (command pause)
- )
- (if (not (equal ent (setq ent (entlast))))
- (progn
- (setq pl (vl-remove-if-not '(lambda (x) (= 10 (car x))) (entget ent))
- pl (mapcar '(lambda (x) (append (cdr x) '(0))) pl)
- )
- (entdel ent)
- (command "_3dpoly")
- (foreach pt pl (command "_non" pt))
- (command "_c")
- )
- )
- )
|