原帖由 suenhjing 于 2009-4-1 12:19 发表 2 |% I e: x& |' g+ m
比如给0层设为00,输入00命令,0层关闭,再输入00命令,0层打开,其他层不影响,谢谢各位了 / e$ N. z6 R4 m0 z0 t7 ?8 {) l2 @7 y9 _
( y. B2 ?, w7 e, N/ D
试试这个:
6 M9 I! {3 p1 H3 ~9 g4 b# p: |(defun c:00()' c) S0 B" f) C. [: y4 z: K
(if (= (getvar "clayer") "0")
; s! z; h n: ], X$ W: X D4 _' N, e (progn (command "layer" "off" "0" "Y" "")
_; _5 L' O! m6 H) p5 p" r7 b' G (prompt "您关闭了当前层!")! |' Q% M0 K: R
)
N; ~' F3 S3 Y( O! G" [+ r (command "layer" "off" "0" "")2 q/ ^* U6 }/ p$ i
)
, W3 q3 O+ p' ]: u7 ~ (princ)9 }" Z2 G* h" `
) |