马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
本帖最后由 newer 于 2021-1-16 19:58 编辑
使用lisp将CAD标注的线性标注比例设置为0.1
 - ;;;;;;;;=====将标注的线性标注比例设置为0.1
- ;;;;剔除两边夹角标注、圆弧角度标注出选择集
- (defun C:DD1 (/ ss1 ent sc i)
- (vl-load-com)
- (setq
- ss1 (ssget ":S:L"
- '(
- (-4 . "<or")
- (-4 . "<and")
- (0 . "DIMENSION")
- (-4 . "<and")
- (-4 . "!=")
- (70 . 34)
- (-4 . "!=")
- (70 . 37)
- (-4 . "and>")
- (-4 . "and>")
- (-4 . "<and")
- (0 . "ARC_DIMENSION")
- (70 . 37)
- (-4 . "and>")
- (-4 . "or>")
- )
- )
- sc 0.1
- i 0
- )
- (repeat (sslength ss1)
- (setq ent (vlax-ename->vla-object (ssname ss1 i)))
- (vla-put-linearscalefactor ent sc)
- (setq i (+ i 1))
- )
- ;;end repeat
- (princ)
- )
- ;;end defunction
|