< ><FONT face=宋体>(defun c:area2 ()
(setvar "cmdecho" 0)
(command "_.undo" "be")
(setq pt (getpoint "\n面积自动计算并标注 VER 1.0---by 罗志勇</FONT><EMAIL ZY9788@126.COM><FONT face=宋体>!\n请点取要标注的范围内一点:"))
(command "-boundary" pt "")
(command "area" "o" (entlast))
(command "erase" (entlast) "")
(setq area (getvar "area"))
(command "style" "幼圆" "幼圆" "" "" "" "" "")
(command "text" "j" "c" pt "250" "0" (strcat (rtos (/ area 1000000) 2 3) "M?"))
(princ (strcat "\n该范围的面积为A=" (rtos (/ area 1000000) 2 3) "M?" (strcat "(" (rtos area 2 0) "mm?)。") "\n***面积自动计算并标注--ver 1.0***(2004年2月 by Rokin)!\n"))
(command "_.undo" "e")
(setvar "cmdecho" 1)
(princ))</FONT> </EMAIL:LZY9788@126.COM></P>
<P><EMAIL:LZY9788@126.COM></EMAIL:LZY9788@126.COM> </P>[br][br]-----------------------------------------[br]奖励用户:原因:奖励 用户操作:金钱5,经验2, 操作者:Michael_66[br][br]-----------------------------------------[br]奖励用户:原因:奖励 用户操作:金钱5,经验2, 操作者:Michael_66 |