sailorcwx发表于2010-5-19 19:32:00 (defun c:m71() (makelayer \"ton\" 2))(defun makelayer(xx1 xx2) (if (= xx1 nil)(command \"-layer\" \"new\" xx1 \"color\" xx2 xx1 \"\")))实际
谢谢大家,后来我调试了几次也发现这个问题,后来增加了一个形参解决问题了。 (defun c:m71() (makelayer "ton" ton 2)) (defun makelayer(xx1 xx3 xx2) (if (= xx3 nil)(command "-layer" "new" xx1 "color" xx2 xx1 ""))) |