明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1444|回复: 1

大家来找查。。。。

[复制链接]
发表于 2004-11-26 20:26:00 | 显示全部楼层 |阅读模式
请大家帮忙找查。。。
(defun C:xx (/ r p1 p2 p3 b a p4 n)
(setq r (* (getvar "useril") 8))
(setq p1 (getpoint "\指定第一点:"))
(setq p2 (getpoint "\指定第二点:"))
(setq p3 (getpoint "\指定第三点:"))
(setq b (list (car p3) (cadr p2)))
(setq a (polar p2 (angle p2 b) r))
(command "line" p1 p2 a "")
(setq p4 (osnap a "midp"))
(setq n (getstring "\输入付件编号:"))
(command "text" "s" "STANDARD" "j" "bc" p4 0 n)
(princ)
)
(defun C:ww (/ r fp sp a n)
(setq r (* (getvar "useril") 5))
(setq fp (getpoint "\指定第一点:"))
(setq sp (getpoint "\指定第二点:"))
(command "circle" sp r)
(setq a (polar sp (angle sp fp) r))
(command "line" fp a "")
(setq n (getstring "\输入零件编号:"))
(command "text" "s" "STANDARD" "m" sp 0 n)
(princ)
)

以上是两个标零件的程序,看那里出问题了???
发表于 2004-11-27 07:59:00 | 显示全部楼层
useril 应为 useri1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-30 04:30 , Processed in 0.166981 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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