[求助]弧长的标注
诸位大虾,有知道在CAD中标注弧长,以及曲线的办法么?计算的不要,偶会!最好是象标注线段距离那样简单就好 可惜哦 CAD中没有 单位电脑里好象有个资料可以自己做一个标注弧长的按钮 我翻出来发给你 <P>最简单的方法是先把圆弧的角度标出,然后再改为长度。</P> 如果“要象标注线段距离那样简单”,可能需要进行一些编程工作。 <P>2楼的大虾好。谢谢,我的电邮是<A href="mailto:westwolf1215@sohu.com" target="_blank" >westwolf1215@sohu.com</A></P><P>或<A href="mailto:ljizhu@haida.cn" target="_blank" >ljizhu@haida.cn</A></P>
<P> </P>
<P> </P>
<P> </P> 3楼的,,你那是咋弄的,,,看不懂, <P>三楼的哪个图就是用角度标注好了以后,把角度改成你所表示的长度了。</P> 天正有这个功能。 <P>;==============================<BR>; 弧长标注<BR>;==============================<BR>(defun C:hu (/ obj sel el e r ang angs ange larc pnt multi)<BR> (setvar "CMDECHO" 0)<BR> (setq multi (getvar "dimlfac"));;;add 2002.5.15 can remove<BR> (setq obj (entsel "\nSelect ARC:<Exit> "))<BR> (setq sel (car obj))<BR> <BR> (setq pnt (getpoint "point"))<BR> <BR> (terpri)<BR> (if (/= sel nil)<BR> (progn<BR> (setq el (entget sel))<BR> <BR> (setq e (assoc 0 el))<BR> (if (= "ARC" (cdr e))<BR> (progn<BR> (setq r (assoc 40 el))<BR> (setq r (cdr r))<BR> (setq angs (assoc 50 el))<BR> (setq angs (cdr angs))<BR> (setq ange (assoc 51 el))<BR> (setq ange (cdr ange))<BR> (setq ang (- ange angs))<BR> (if (< ang 0)<BR> (setq ang (- (* 2 pi) (abs ang)))<BR> )<BR> (setq larc (* r ang))<BR> (setq larc (* larc multi));;;add 2002.2.20 can remove<BR> ;;;add muti as multiple<BR> ;;;(princ "Angle = ")<BR> ;;;(prin1 (* (/ ang pi) 180))<BR> ;;;(princ " , Radius = ")<BR> ;;;(prin1 r)<BR> ;;;(princ "\nLength of ARC is : ")<BR> ;;;(prin1 larc)</P>
<P> <BR> )<BR> (princ "Object is not a ARC !")<BR> )</P>
页:
[1]
2