- 积分
- 29846
- 明经币
- 个
- 注册时间
- 2019-11-19
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2022-4-15 07:39:56
|
显示全部楼层
(defun c:M7(/ pt1 pt3 val an pt4 pt5 pt6 pt7 d)
(command "ucs" w)
(if (not yanchangzhiall_ever) (progn (setq yanchangzhiall_ever 0.5)) (setq d yanchangzhiall_ever))
(setq d (getdist (strcat "\n输入边距<" (rtos yanchangzhiall_ever) ">:")))
(if (not d) (setq d yanchangzhiall_ever) (setq yanchangzhiall_ever d))
(setq jl (strcat "0," (rtos d 2 2) ",0" ))
(while (setq sel (ssget))
(setq pt1 (getpoint "\n请指定要移动视图的基点:"))给1点
(setq pt3 (getpoint "\n请指定目的点:"));给2点
(command "MOVE" sel ""pt1 pt3)
(command "move" sel "" "non" "0,0,0" "non" jl)
)
(princ)
) |
|