本帖最后由 作者 于 2003-6-20 10:34:53 编辑
;;
;; Get list of entire layer name.
;;
(defun do_layer (/ start lyr layer_list)
(setq start 1)
(while (setq lyr (tblnext "LAYER" start))
(setq start nil)
(setq layer_list (append layer_list (list (cdr (assoc 2 lyr))) ))
)
layer_list
)
(defun c:change_lac ( / all_layer_list n la)
(setq all_layer_list (do_layer))
(setq n 0)
(while (setq la (nth n all_layer_list))
;
(cond
((< n 10)(command "-layer" "c" "200" la ""))
((< n 15)(command "-layer" "c" "156" la ""))
((< n 20)(command "-layer" "c" "10" la ""))
);_cond
(setq n (+ n 1))
);_while
)
[此贴子已经被作者于2003-6-20 10:34:27编辑过] |