选物关层lsp程序
求选物关层lsp程序,包括当前层(defun Loff (lyr)
(if (= (getvar "Clayer") lyr)
(command "layer" "off" lyr "y" "")
(command "layer" "off" lyr "")
)
)
(defun C:test ()
(setq ee (entsel))
(Loff (cdr (assoc 8 (entget (car ee)))))
)
回复 2# Camello
非常谢谢 神马意思?
页:
[1]