只需一步,快速开始
使用道具 举报
参见(while (/= (type aa) 'LIST)(initget 2 "S") (setq aa (getpoint "\n设置(S)/选择基准点:")) (cond ((= (type aa) 'STR) () ) ((= (type aa) 'list) (setq py (cadr aa)) ) (T (exit))
))
你应该用(initget 128)
(initget 128)
监视s1就是nil,怎么回事?
原来entsel只支持识别关键字,不支持控制位的值,也就是(initget [bits] [string])中的bits对entsel不起作用。
倒是明白了为什么s1是nil,但是还没有解决问题。
你查一查grread这个函数
当输入字母和鼠标点击的时候
你跳出循环就可以了
程序就不写了 算法给你
(setq go T)
(while go
(setq tmp(grread T))
(cond
((= tmp xxx)
(setq go nil)
)
如果得到一点
可以用getcorner获取对角点
然后用ssget框选即可判断选择的图元
另外
你可以调用
entselp
这个函数自动选取图元
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-5-14 18:41 , Processed in 0.153716 second(s), 26 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.