|
<FONT face=宋体 size=2>(defun c:zdbh (/ oce1 qz n1 zn h1 sxh1 p1)<BR><BR>(setq oce1 (getvar "cmdecho"))<BR>(setvar "cmdecho" 0)<BR>(command "-style" "BG_ST" "宋体" 0 0.8 0 "n" "n")<BR><BR>(setq qz (getstring "\n请输入前缀相同的部分: "))<BR>(if (not (setq n1 (getint "\n请输入起始顺序号 <1>: ")))<BR>(setq n1 1)<BR>)<BR>(if (not (setq zn (getint "\n请输入增加或减少的序数 <+1>: ")))<BR>(setq zn 1)<BR>)<BR>(if (not (setq h1 (getreal "\n请指定文字高度 <2.5>: ")))<BR>(setq h1 2.5)<BR>)<BR>(setq<BR>sxh1 (strcat qz (itoa n1))<BR>p1 (getpoint "\n请指定插入点: ")<BR>)<BR>(while (/= p1 nil)<BR>(command "text" "m" p1 h1 0 sxh1)<BR>(setq<BR>n1 (+ n1 zn)<BR>sxh1 (strcat qz (itoa n1))<BR>p1 (getpoint "\n请指定下一插入点: ")<BR>)<BR>)<BR>(setvar "cmdecho" oce1)<BR>(princ)<BR>) </FONT> |