找回密码
 注册会员
查看: 103|回复: 0

visual lisp 程序调试的出现了 “ 错误: 参数太少” 请boss们看下

[复制链接]
发表于 2015-6-4 19:32:06 |Error| 显示全部楼层 |阅读模式

让我们的手紧紧相连,一起成长。

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

×
画一个键轴截面
(defun c:jianzhou(/p0 alf d b t1 r l b1 sit p1 p2 p3 p4 p5)
  (setq p0 (getpoint"\nEnter p0:"))
  (setq d (getdist p0"\nEnter d:"))
  (setq b (getdist p0"\nEnter b:"))
  (setq t1 (getdist p0"\nEnter t1:"))
  (setq alf (getangle p0"\nEnter alf:"))
  (setq r (* 0.5 d) b1 (* 0.5 b ))
  (setq l (sqrt (-(* r r)(* b1 b1))))
  (setq sit (atan b1 l))
  (setq p1 (polar p0 (+ alf sit) r))
  (setq p2 (polar p0 (+ pi alf) r))
  (setq p3 (polar p0 (-alf sit) r))
  (setq p4 (polar p3 (+pi alf) (-(+r l) t1)))
  (setq p5 (polar p1 (+ alf pi) (-(+ r l) t1)))
  (command "pline" p1 "a" "s" p2 p3 "l" p4 p5 "c")
  )
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

闭关者|手机版|© 2005-2026|Cncad.Net ( 苏ICP备2026083443号 )|网站地图

GMT+8, 2026-11-9 21:01 , Processed in 0.190542 second(s), 20 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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