明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: cgmacby

[已解答] ,尺寸线性标注800远 各位版主大人~~~速度来赚钱了

[复制链接]
发表于 2021-6-26 01:08 | 显示全部楼层
非常好的帖子
发表于 2021-9-12 11:29 | 显示全部楼层
值得收藏学习!
发表于 2021-11-21 22:30 | 显示全部楼层
院长出手非同凡响啊!多谢!
发表于 2021-11-27 12:40 | 显示全部楼层
不错的帖子 顶一下
发表于 2022-5-14 18:04 | 显示全部楼层
本帖最后由 liunian0524 于 2022-5-16 08:38 编辑
xj6019 发表于 2019-11-26 10:46
谁能把17楼的和27楼的结合一下啊  ,命令运行后就先输入偏移值,并可以记忆便宜量,然后可以连续点击标注, ...

(defun c:tt3 (/ p1 p2 p3 rad r1 p3 p4)
(setvar "cmdecho" 0)
   (if (null *dim_dist)(setq *dim_dist (* 200 (getvar "dimscale"))));;设定偏移默认值
   (if(setq temp (getreal(strcat "\n指定尺寸线偏移距离:<"(rtos *dim_dist) ">")))(setq *dim_dist temp))  
   (if (and (setq p1 (getpoint "\n指定第一条尺寸界线原点:"))
            (setq p2 (getpoint p1 "\n指定第二条尺寸界线原点:"))
            (setq p3 (getpoint p2 "\n方向点: "))
       )
    (progn
          (setq rad (angle p1 p2)
                 r1  (+ rad (* pi 0.5))
                 p4  (inters p1 p2 p3 (polar p3 r1 10) nil)
                 p3  (polar p4 (angle p4 p3) *dim_dist)
           )
           (command "_dimaligned" "non" p1 "non" p2 "non" p3)
            (while (setq p4 (getpoint "\n指定第二条尺寸界线原点:<退出>: "))
             (setq p4 (inters p1 p2 p4 (polar p4 r1 100) nil))
             (command "dimcontinue" "non" p4 "")
             (while (> (getvar "cmdactive") 0) (command ""))
           )
    )
  )
  (princ)
)

评分

参与人数 1明经币 +1 收起 理由
xj6019 + 1 赞一个!

查看全部评分

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-5 13:20 , Processed in 0.193851 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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