请问高手?
请问怎么样才能在坐标标注后面加上1,2,3带圈的序号,每标一个数序号增加? <P>这样做有什么意义么?是要改写cad的标注命令还是自定义的命令?</P><P>最好发个效果图上来看看。</P>
谢谢!
是用AUTOLISP语言怎么编呀,这样做是想标的数每个都有序号,以便测量。 <P>这个给您参考</P><P> LE Jul 17 2002, 7:12 am show options </P>
<P>Newsgroups: autodesk.autocad.customization <BR>From: "LE" <<A href="http://www.arqcom.com.mx/" target="_blank" >www.arqcom.com.mx</A>> - Find messages by this author <BR>Date: Tue, 16 Jul 2002 15:48:49 -0700 <BR>Local: Wed, Jul 17 2002 6:48 am <BR>Subject: Re: Getpoint function fails <BR>Reply to Author | Forward | Print | Individual Message | Show original | Report Abuse </P>
<P>Richard Preator </P>
<P><BR>There you go sir... </P>
<P><BR>(defun c:rpball (/ old oldsnap sty ang scl <BR> scl1 Dscl Cscl storela k#clayer <BR> ldr_start ldr_end a aang Ascl <BR> point circl txt) <BR> (setvar "cmdecho" 0) <BR> (setq old (getvar "orthomode")) <BR> (setvar "orthomode" 0) <BR> (setq oldsnap (getvar "osmode")) <BR> (setq sty (getvar "snapstyl")) <BR> (setvar "snapstyl" 0) <BR> (setq ang (getvar "snapang")) <BR> (setq scl (getvar "dimtxt")) <BR> (setq scl1 (getvar "dimscale")) <BR> (setq Dscl (* scl scl1)) <BR> (setq Cscl (* Dscl 1.2)) <BR> (setq storela (getvar "curlayer")) <BR> (setq k#clayer (getvar "clayer")) <BR> (if (/= storela "DIM") <BR> (command "._layer" "_m" "DIM" "")) <BR> (command "._osmode" 512) <BR> (setq ldr_start <BR> (getpoint "\n Enter Start Point of Leader at Object: ")) <BR> (prompt "\n Enter Center of Balloon: ") <BR> (command "._osnap" "_none") <BR> (command "._line" ldr_start pause "") <BR> (setq ldr_end (getvar "lastpoint")) <BR> (command "._erase" "_l" "") <BR> (setq A (angle ldr_start ldr_end)) <BR> (setq Aang (* 180 (/ A pi))) <BR> (setq Ascl (* 0.32 Dscl)) <BR> (setq point (polar ldr_start A Dscl)) <BR> (command "._pline" ldr_start ldr_end "") <BR> (command "._pedit" "_l" "_edit" "_insert" point "_P" "_w" "0.0" Ascl <BR> "_x" "_x") <BR> (command "._circle" ldr_end Cscl) <BR> (setq circl (entlast)) <BR> (command "._change" circl "" "_p" "_c" 1 "") <BR> (command "._trim" circl "" ldr_end "") <BR> (setq txt (getstring "\nItem Number: ")) <BR> (command "._text" "_j" "_m" ldr_end Dscl "0" (princ txt)) <BR> (command "._change" "_l" "" "_p" "_c" 1 "") <BR> (setvar "cmdecho" 1) <BR> (setvar "snapstyl" sty) <BR> (setvar "snapang" ang) <BR> (setvar "orthomode" old) <BR> (setvar "clayer" k#clayer) <BR> (setvar "osmode" oldsnap) <BR> (princ)) <BR>(princ) </P>
<P> </P>
页:
[1]