本帖最后由 夏生生 于 2021-12-3 11:37 编辑
哪位大侠可以指导一下,谢谢。我又如下代码:
- (defun c:temp ( / loop gr)
- (setq loop t)
- (prompt "\n输入m,c,l:")
- (while loop
- (setq gr (grread T 15 2))
- (cond ((or (equal gr (list 2(ascii "m"))) (equal gr (list 2(ascii "M"))))
- (setq loop nil)
- (command "move")
- )
- ((or (equal gr (list 2(ascii "c"))) (equal gr (list 2(ascii "C"))))
- (setq loop nil)
- (command "copy")
- )
- ((or (equal gr (list 2(ascii "l"))) (equal gr (list 2(ascii "L"))))
- (setq loop nil)
- (command "line")
- )
- )
- )
- )
如何在AutoCAD命令行无命令输入且有选择或无选择的情况下,右键,自动执行temp命令,也就是自定义一个永久右键反应器,在其它的插件定义了右键反应器的情况下,要关闭其它的右键反应器。
另:左键双击空白处也可以
|