明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1840|回复: 2

[求助]请帮忙编一个号码球小程序

[复制链接]
发表于 2004-2-26 15:21 | 显示全部楼层 |阅读模式

本帖子中包含更多资源

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

x
发表于 2004-2-27 10:25 | 显示全部楼层
下面的程序已测试通过,供参考:
(defun c:hmq(/ p1 p2 p3 r hm th)
(setq p1(getpoint "\n起点:"))
(setq p3(getpoint p1 "放置点:"))
(setq r(getdist "半径:"))
(setq hm(getstring "号码:"))
(if(and p1 p3 r hm)
(progn
(setq th 2.0)
(setq p2(polar p3 (+(angle p1 p3) pi) r))
(command "line" p1 p2 "")
(command "circle" p3 r)
(command "text" "j" "m" p3 th 0 hm)
)
)
)
发表于 2004-12-27 23:28 | 显示全部楼层
谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-1 23:10 , Processed in 1.030909 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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