明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1376|回复: 1

帮忙看下这个程序那里有问题啊 加载后提示错误列表输入,求帮助修改下

[复制链接]
发表于 2014-3-19 10:13:44 | 显示全部楼层 |阅读模式
本帖最后由 243811238 于 2014-3-20 10:47 编辑

下面绿色的单独执行都没问题,就是搞一起选择性的 不可以;了
(defun c:ic ()
(while (= lnm “1”)
(COMMAND "UNDO" "BE")
(setq p0 (getpoint))
(setq p1 (getpoint))
(setq ang (angle p0 p1))
(if (< ang (/ pi 2))
(progn
((setq ang 100)
)
)
(if (< ang (* (/ pi 2) 3))
(progn
(command "insert" "ic3" p0 "" "" "")
(command "explode" "l")
(setq ang 100)
)
)
(if (< ang (* pi 2))
(progn
(command "insert" "ic4" p0 "" "" "")
(command "explode" "l")
(setq ang 100)
)
)
(COMMAND "UNDO" "E")
)
(while(= lnm “3”)
(COMMAND "UNDO" "BE")
(setq p0 (getpoint))
(setq p1 (getpoint))
(setq ang (angle p0 p1))
(if (< (setq ang 100)
)
)
(if (< ang pi)
(progn
(command "insert" "3ic2" p0 "" "" "")
(command "explode" "l")
(setq ang 100)
)
)
(if ((progn
(setq ang 100)
)
)
(if (< (command "explode" "l")
(setq ang 100)
)
)
(COMMAND "UNDO" "E")
)
 楼主| 发表于 2014-3-19 10:49:43 | 显示全部楼层
人呢都 ,帮帮忙啊 大哥们
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-15 13:39 , Processed in 0.169040 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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