
- (defun c:tt (/ e el pts ss)
- (if (and (setq e (car (entsel "\nPick Polyline: ")))
- (setq el (entget e))
- (= (cdr (assoc 0 el)) "LWPOLYLINE")
- (setq pts (vl-remove-if-not '(lambda (x) (= (car x) 10)) el))
- (setq ss (ssget "F"
- (mapcar 'cdr pts)
- '((0 . "*POLYLINE")
- (-4 . "&=")
- (70 . 1)
- (8 . "0")
- )
- )
- )
- (progn
- (ssdel e ss)
- t
- )
- )
- (princ (sslength ss))
- )
- (princ)
- )
|