找回密码
 [加入论坛]
查看: 2818|回复: 11

[转帖]弧长标注

[复制链接]
2443725 发表于 2004-8-31 15:07 | 显示全部楼层 |阅读模式
<FONT face="Courier New">(princ "\ndmarc=====dim arc 单段圆弧标注--------lxx.2001.5")
(princ "\ndimarc=====dim arc 圆弧连续标注--------lxx.2001.5")
;;=============================================================
(defun c:dmarc (/ n ent entl rad ans ane ptcen pts pte ang arcl)
(princ "\ndim arc 单段圆弧标注--------lxx.2001.5")
(setq n (getint "\n标注文字小数点后位数&lt;2&gt;:"))
(if (not n) (setq n 2))
(setq ent (car(entsel "\n选择圆弧:"))
      entl (entget ent)
      rad (cdr (assoc 40 entl))
      ans (cdr (assoc 50 entl))
      ane (cdr (assoc 51 entl))
      ptcen (cdr (assoc 10 entl))
      pts (polar ptcen ans rad)
      pte (polar ptcen ane rad)
)
(if (&gt; ane ans)
    (setq ang (- ane ans))
    (setq ang (+ ane (- (* 2 PI) ans)))
)
(setq arcl (rtos (* rad ang) 2 n))
(command "dim" "an" "" ptcen pts pte pause arcl "" "e")
(princ)
)
;;=============================================================
(defun c:dimarc (/ n ent entl rad ptcen roop ptoff pts pte ans ane roff ang arcl)
(princ "\ndim arc 圆弧连续标注--------lxx.2001.5")
(setq n (getint "\n标注文字小数点后位数&lt;2&gt;:"))
(if (not n) (setq n 2))
(setq ent (car(entsel "\n选择圆弧:"))
      entl (entget ent)
      rad (cdr (assoc 40 entl))
      ptcen (cdr (assoc 10 entl))
      roop "true"
      ptoff (getpoint "\n标注延伸线偏移点:")
)
(getarcl)
(command "dim" "an" "" ptcen pts pte pause arcl "")
(while roop
(getarcl)
(if (not pte)
     (setq roop nil)
     (progn
      (command "co" pte)
      (setq entl (entget(entlast))
            entl (subst (cons 1 arcl) (assoc 1 entl) entl)
      )
      (entmod entl)
     );end progn
)
);;end while
(command)
(princ)
)
;;getarcl
(defun getarcl ()
(if (not pts) (setq pts (getpoint "\n标注起点:")) )
(if pte (setq pts pte))
(setq pte (getpoint "\n标注终点:")
      ans (angle ptcen pts)
      ane (angle ptcen pte)
)
(if ptoff (setq roff (distance ptcen ptoff);;;;;;;标注美化
                pts (polar ptcen ans roff)
                pte (polar ptcen ane roff)
          )
)
(if (&gt; ane ans)
    (setq ang (- ane ans))
    (setq ang (+ ane (- (* 2 PI) ans)))
)
(setq arcl (rtos (* rad ang) 2 n))
)
</FONT>
sjiang 发表于 2004-9-5 04:21 | 显示全部楼层
弧长的标注我用标注角度的方法标注,至于弧长,可以通过list 命令求出.也很方便,很快!
回复 顶 踩

使用道具 举报

Michael_66 发表于 2004-9-5 05:43 | 显示全部楼层
有没有弧线啊?
回复 顶 踩

使用道具 举报

t6216453 发表于 2004-10-24 18:31 | 显示全部楼层
我同意二楼楼主的意见~!好用又快捷啊!
回复 顶 踩

使用道具 举报

静怡然 发表于 2004-10-27 01:25 | 显示全部楼层
<>晓东工具箱就有这个功能建议去下载</P><P><a href="http://www.xdcad.net" target="_blank" >http://www.xdcad.net</A></P><P>只是要注册</P>
回复 顶 踩

使用道具 举报

jaffy27ly 发表于 2004-11-24 22:00 | 显示全部楼层
<DIV class=quote><B>以下是引用<I>静怡然</I>在2004-10-26 17:25:42的发言:</B>

<>晓东工具箱就有这个功能建议去下载</P>
<P><a href="http://www.xdcad.net/" target="_blank" >http://www.xdcad.net</A></P>
<P>只是要注册</P></DIV>
<P>你要是注册了的话,下载再传上来方便大家阿~
<P>我的做法和2楼的一样</P>
回复 顶 踩

使用道具 举报

lgjsky 发表于 2004-11-25 01:26 | 显示全部楼层
二楼楼主的意见好!
回复 顶 踩

使用道具 举报

fjfg 发表于 2006-5-16 03:39 | 显示全部楼层
<p>我也是按二楼的方法标注,</p><p>但麻烦的是那个弧度标记要画上去,</p><p>有没有其他的办法可以自动生成弧度标记吗?</p>
回复 顶 踩

使用道具 举报

liu695 发表于 2006-5-28 01:27 | 显示全部楼层
<p>二楼的主意好。但是要记住在数字上面加弧长的符号哦。</p><p></p>
回复 顶 踩

使用道具 举报

一亩地 发表于 2006-5-28 17:09 | 显示全部楼层
建议大家可以应用TH-PCCAD2006外挂软件,其中就有弧长的标注。
回复 顶 踩

使用道具 举报

xiaojing94 发表于 2006-5-31 00:33 | 显示全部楼层
还是2楼的方法简便,谢谢!
回复 顶 踩

使用道具 举报

SXM5126 发表于 2007-8-24 13:44 | 显示全部楼层
果真是个好东西
回复 顶 踩

使用道具 举报

您需要登录后才可以回帖 登录 | [加入论坛]

本版积分规则

手机版|化工技术网- 赠人玫瑰 手有余香 ( 苏ICP备14035884号 )

GMT+8, 2026-12-1 17:17

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表