- (defun c:jyyd (/ s_disyd)
- (princ "\n<<<欢迎使用记忆移动功能>>>")
- (setvar "ORTHOMODE" 1)
- (command ".MOVE" (ssget) "")
- (command (setq basicpoint (getpoint "\n指定基点:")))
- (if (= nil s_dis_allyd)
- (progn
- (setq s_dis_allyd (getreal "\n输入移动距离:"))
- (command s_dis_allyd)
- )
- (progn
- (setq s_disyd (getreal (strcat "\n输入拉伸距离<" (rtos s_dis_allyd 2 4)
- ">:"
- )
- )
- )
- (if (= nil s_disyd)
- (setq s_disyd s_dis_allyd)
- )
- (command s_disyd)
- (setq s_dis_allyd s_disyd)
- )
- )
- (setvar "ORTHOMODE" 0)
- (princ "\<<<记忆移动执行完毕!>>>")
- (princ)
- )
取自明经,各有优劣 |