本帖最后由 Andyhon 于 2012-4-8 11:39 编辑
试试如此合用否?
- (defun C:test ()
- (or
- (setq ss (cadr (ssgetfirst)))
- (prompt "\n全选要交换位置两个选择集: ")
- (setq ss (ssget))
- )
-
- (setq pts (acet-geom-ss-extents ss nil)
- pb (getpoint "\n 下方基点: ")
- pa (getpoint "\n 上方基点: ")
- )
- (command "move" ss "" pa pb)
- (command "move" ss "R" "w" pb (cadr pts) ""
- (polar pb (* pi 0.5) (- (cadr pb) (cadr pa)))
- pa
- )
- )
|