在2006以下弧长标注有时候比较困难,但角度的连续标注比较容易,(天正用轴网标注可以很快生成角度标注)
所以我这里编写了一个小工具,用来把角度标注转化为弧长标注的。命令: CCC
- (defun c:ccc (/ fil sel rad R i ent dxf val new)
- (setq fil '( (-4 . "<OR")
- (100 . "AcDb2LineAngularDimension")
- (100 . "AcDb3LineAngularDimension")
- (-4 . "OR>")
- (0 . "DIMENSION")
- )
- )
- (if (and (setq sel (ssget fil))
- (setq rad (car (entsel "\n请选择相应的圆弧: ")))
- (setq rad (entget rad))
- (or (= (cdr (assoc 0 rad)) "CIRCLE")
- (= (cdr (assoc 0 rad)) "ARC")
- )
- )
- (progn
- (setq R (cdr (assoc 40 rad)))
- (setq i 0)
- (repeat (sslength sel)
- (setq ent (ssname sel i))
- (setq dxf (entget ent))
- (setq val (assoc 42 dxf))
- (setq new (* (cdr val) R))
- (setq new (rtos new 2 0))
- (setq new (strcat "{\\fSimSun|b0|i0|c134|p2;⌒}" new))
- (setq dxf (subst (cons 1 new) val dxf))
- (entmod dxf)
- (setq i (1+ i))
- )
- )
- )
- )
|