明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1143|回复: 1

帮我看看这程序问题出在那啊,急啊

[复制链接]
发表于 2010-4-5 22:20:00 | 显示全部楼层 |阅读模式
本帖最后由 作者 于 2010-4-5 22:53:42 编辑

这是一个齿轮加工的程序,运行程序时老是提示"no function definition: C:ROTATE3D", 应该就是程序中C:ROTATE3D有问题但我不知道出在那和怎么改,高手帮帮忙啊,急用啊,谢谢!程序上传了,耽误点时间麻烦看看。

(command "pline" pt1 pt2 pt3 pt4 pt5 pt6 "c")
  (setq e1 (ssget "L"))
  (command "rotate" e1 "" (list 0 0 0) "90" "")
  (setq e2 (entlast))
  (command "revolve" e2 "" (list 0 2) (list 0 -2) "")
  (setq e3 (entlast))
  (c:ROTATE3D)
  (c:ROTATE3D e3 "" (list 1 0 0) (list -1 0 0) (- 90.0 sprialangle) "")
  (setq e4 (entlast))
  (setq pv1 (+ (/ (* m z) 2.0) pt7))
  (setq pv2 -50.0)
  (command "move" e4 "" (list 0.0 0.0) (list pv1 pv2))
  (setq xidao (entlast))

发表于 2010-4-6 20:43:00 | 显示全部楼层

试一下:

  (setq e3 (entlast))
  ;;;(c:ROTATE3D)
  (command "ROTATE3D" e3 "" (list 1 0 0) (list -1 0 0) (- 90.0 sprialangle) "")
  (setq e4 (entlast))

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-10-1 23:29 , Processed in 0.173280 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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