明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 947|回复: 9

[资料下载] 绘制三维电动机的程序

[复制链接]
发表于 2025-2-27 01:53:55 | 显示全部楼层 |阅读模式
绘制Y系列三维电动机的程序

本帖子中包含更多资源

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

x

评分

参与人数 1明经币 +1 收起 理由
tomonkey239 + 1 厉害

查看全部评分

回复

使用道具 举报

发表于 2025-2-27 08:17:17 | 显示全部楼层
本帖最后由 寒潮大冬瓜 于 2025-2-27 08:20 编辑

电动机顺利绘出

本帖子中包含更多资源

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

x

点评

这不全,不是完整的。  发表于 2025-2-27 11:15
回复 支持 1 反对 0

使用道具 举报

发表于 2025-2-27 05:39:08 | 显示全部楼层
谢谢楼主的分享
看来楼主的专业是电机方面
期待其他分享资料
回复 支持 反对

使用道具 举报

发表于 2025-2-27 07:10:20 | 显示全部楼层
看起来不错,但运行出错了。
回复 支持 反对

使用道具 举报

发表于 2025-2-27 08:10:18 | 显示全部楼层

程序不错,但运行不了
回复 支持 反对

使用道具 举报

发表于 2025-2-27 11:14:24 | 显示全部楼层
本帖最后由 null. 于 2025-2-27 11:20 编辑

(defun sanjiao ()
        (if (null ang2)(setq ang2 0.0))
        (if (null ang3)(setq ang3 0.0))
        (if (null ang4)(setq ang4 0.0))
        (if (null ang1)(setq ang1 0.0))
)
(defun chushihua ()
        (princ)
)
(defun rtod (R )
        (* R 2.0)
)
补充程序这几个函数,程序就不出错了。

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2025-2-27 11:29:47 | 显示全部楼层
本帖最后由 null. 于 2025-2-27 11:30 编辑
  1. (defun sanjiao();;ang1 ang2 ang3 ang4
  2.     (setq ang1 0)
  3.     (setq ang2 (/ PI 2))
  4.     (setq ang3 PI)
  5.     (setq ang4 (/ (* 3 PI) 2))
  6. )
  7. chushihua


  8. (defun chushihua(/ pLw delobj_old clay clt osm orth tbL1 tbL2 tbL3 tbL4 tbL5 tbL6 tbL7 tbL8)
  9.   (setvar "cmdecho" 0)
  10.   (setvar "blipmode" 0)
  11.   (setq plw (getvar "PLINEWID"))
  12.   (setq delobj_old (getvar "delobj"))
  13.   (setq clay (getvar "clayer"))
  14.   (setq clt (getvar "CELTYPE"))
  15.   (setq osm (getvar "osmode"))
  16.   (setq orth (getvar "orthomode"))
  17.   (setvar "delobj" 1)
  18.   (setvar "orthomode" 1)
  19.   (setvar "PLINEWID" 0)
  20. ;;;  (setvar "3dosmode" 1)
  21.   
  22.   (vl-load-com)
  23.   (setq tbL1 (tbLsearch "ltype" "center"))
  24.   (if(= tbL1 nil) (command "-linetype" "L" "center" "acadiso" ""))
  25.   (setq tbL2 (tbLsearch "ltype" "divide"))
  26.   (if(= tbL2 nil) (command "-linetype" "L" "divide" "acadiso" ""))
  27.   (setq tbL3 (tbLsearch "ltype" "hidden"))
  28.   (if(= tbL3 nil) (command "-linetype" "L" "hidden" "acadiso" ""))
  29.   (setq tbL4 (tbLsearch "layer" "cen_lay"))
  30.   (if(= tbL4 nil) (command "-layer" "N" "cen_lay" "L" "center" "cen_lay" "C" 1 "cen_lay" ""))
  31.   (setq tbL5 (tbLsearch "layer" "dim_lay"))
  32.   (if(= tbL5 nil) (command "-layer" "N" "dim_lay" "L" "continuous" "dim_lay" "C" 6 "dim_lay" ""))
  33.   (setq tbL6 (tbLsearch "layer" "suports_lay"))
  34.   (if(= tbL6 nil) (command "-layer" "N" "suports_lay" "L" "continuous" "suports_lay" "C" 4 "suports_lay" ""))
  35.   (setq tbL7 (tbLsearch "layer" "pipe_lay"))
  36.   (if(= tbL7 nil) (command "-layer" "N" "pipe_lay" "L" "continuous" "pipe_lay" "C" 112 "pipe_lay" ""))
  37.   (setq tbL8 (tbLsearch "layer" "equipment_lay"))
  38.   (if(= tbL8 nil) (command "-layer" "N" "equipment_lay" "L" "continuous" "equipment_lay" "C" 4 "equipment_lay" ""))
  39.   
  40.     (command "VSCURRENT" 2 )
  41.   
  42. );;end chushihua

  43. (defun rtod(val);;val
  44.   (/ (* val 180.0) PI)  ; 弧度转十进位度
  45. )
补充这几个函数,就正常了


本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-2-27 15:08:32 | 显示全部楼层
请重新下载此文件。并解压到C盘上。然后加载C:\3wcad\main program\目录中的程序文件
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-4-1 09:28 , Processed in 0.193956 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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