[LISP]求助老师!!!!!! LSp程序
请问我想用PLine线画线,,在我输入命令PLine的回车的时候,,CAD提示输入( Z)高程 ,线画后自动把线加宽到(0.15米)!!!谢谢各位!!! (defun c:pll (/ pt1 wide)<BR> (setvar "cmdecho" 0)<BR> (setq pt1 (getpoint "\n输入点:"))<BR> (if pt1<BR> (progn<BR> (command "pline" pt1)<BR> (setq pt1 (getpoint pt1 "\n输入点:"))<BR> )<BR> )<BR> (if pt1<BR> (progn<BR> (while pt1<BR> (command pt1)<BR> (setq pt1 (getpoint pt1))<BR> )<BR> (command "")<BR> (setq wide (getreal "\n输入高程:"))<BR> (if (= nil wide)<BR> (setq wide 0)<BR> )<BR> (command "change" "l" "" "p" "e" wide "")<BR> (command "pedit" "l" "w" 0.15 "")<BR> )<BR> )<BR>) 设置PLINEWID来控制线宽会不会好些呢?
页:
[1]