明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1713|回复: 1

按顺序写带圆圈的数字

[复制链接]
发表于 2013-10-25 17:12:21 | 显示全部楼层 |阅读模式
(defun c:LT008 ()
(setq stanum (getint "\n 请输入开始数字<1>: "))
(if (= stanum nil) (setq stanum 1) )
(setq num1 (getint "\n 请输入数字个数<10>: "))
(if (= num1 nil) (setq num1 10) )
(setq texthigh (getreal "\n 请输入文字高度<2.5>: "))
(if (= texthigh nil) (setq texthigh 2.5) )
(setq r1 (getreal "\n 请输入圆的半径 <0.85>: "))
(if (= r1 nil) (setq r1 0.85) )
(command "style" "standard" "romans.shx,ehzdx.shx" "0" "0.7" "0" "n" "n" "n")
(repeat num1
(setq pt (getpoint "\n 请指定文字注记的位置: "))
(command "text" "j" "m" pt texthigh "0" stanum)
(command "circle" pt (* texthigh r1))
(setq stanum (1+ stanum))
)
(princ "\n Welcome to use the program again!")
(princ "\n Copyright by HongQuan.\n")
(princ "\n TianJin Urban Construction Design Courtyard!\n")
(princ)
)

发表于 2014-2-2 18:45:52 | 显示全部楼层
能做个写母的不?大写,小写!给大写邮大写,给小写出小写!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-25 11:48 , Processed in 0.128744 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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