本帖最后由 baoxiaozhong 于 2019-9-8 18:55 编辑
- ((or (equal gr '(2 73)) (equal gr '(2 105))) (do_MIR))
复制代码
目前是多设一个 I 键为镜像,
但是捕抓键盘的参数已经找到了,可是子参数的镜像,都试不出来,有好心人可以指导一下吗?
- ;;mirror
- (defun do_MIR nil
- (prompt "\n下一點:")
- (command "_.point" "_non" "@")
- (setq l (cons (trans (cdr (assoc 10 (entget (entlast)))) 0 1) l))
- (setq sss (cons s sss))
- (entdel (entlast))
- (command "_.undo" "m")
- (command "_.mirror" s "" "_non" (getvar 'LASTPOINT) "_non" (getvar 'LASTPOINT))
- (command "_.move" s "" "_non" (if llp (setq lp llp) (setq lp (getvar 'LASTPOINT))) pause)
- (setq lllp (mapcar '- (setq llp (getvar 'LASTPOINT)) lp))
- )
|