明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1774|回复: 2

小程序:快速挂球标

[复制链接]
发表于 2005-9-12 21:07 | 显示全部楼层 |阅读模式

1

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
发表于 2005-10-19 21:48 | 显示全部楼层

呵呵,也有用,出改模资料的改模点啊。谢谢!

 

 楼主| 发表于 2005-10-19 21:53 | 显示全部楼层

re

(defun C:bno()
(setq a t)
(if (= r nil) (setq r 10))
(if (= th nil) (setq th 6.5))
(if (= dd nil) (setq dd 2))
(setq P1 (getpoint"\n:Please specify the first point of annotation line: 设置<press space>: "))
        (if (= p1 nil)(progn
 (while (and (/= "x" a)(/= a ""))
 (setq a (getstring "\n:Circle:Texthight:Donut:eXit:<C,T,D,X>:"))
 (cond   ((= a "c") (setq r (read (rtos (/ (getdist "\n input DIA:") 2)))))
  ((= a "t") (setq th (rtos (getdist "\n texthight:"))))
  ((= a "d") (setq dd (rtos (getdist "\n input DIA:"))))
 ))))
  (setq P2 (getpoint p1 "\n Please specify the second point of annotation line: "))
(setq onn (getvar "OSMODE"))
(setvar "OSMODE" 0)
  (command "line" p1 (polar p1 (angle p1 p2) (- (distance p1 p2) r)) "")
(setvar "OSMODE" onn)
 (command "donut" "0" dd p1 "")
  (command "Circle" p2 r)
(prompt "\n:____________请输入球标号:")
  (command "dtext" "j" "mc" P2 th 0)
  )
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-9 04:33 , Processed in 0.189591 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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