基础问题 (setq p2 (mapcar '+ p1 '(w h))
<font face="Verdana">(defun c:dd()<br/> (setq w (getreal "\n门的宽度") );门的宽度<br/> (setq h (getreal "\n立挺的高度:"));立挺的高度<br/> (setq p1 (getpoint "\n请选择图框的左下角个点:"))<br/> (setq p2 (mapcar '+ p1 '(w h)) ;问题出在这,怎么改????????????????<br/> )<br/> (command "_rectang" p1 p2)<br/> (princ)<br/>)<br/></font> <p>想画一个门的立面图</p> 这样试试:(setq p2 (mapcar '+ p1 (list w h))<br/>
页:
[1]