简化一下程序:

- (defun getLayer ( / layer lay_list)
- (while (setq layer (tblnext "layer" (not layer)))
- (if (= (cdr (assoc 70 layer)) 0)
- (setq lay_list (append lay_list (list (cons 8 (cdr (assoc 2 layer))))))
- )
- )
- (append (cons (cons -4 "<OR") lay_list) (list (cons -4 "OR>")))
- )
|