本帖最后由 ZZXXQQ 于 2014-6-21 08:15 编辑
;加强代码- ;;---------------------------------------------------------------------------
- (defun C:V-MR-MV (/ s pt2 pt3)
- (command)
- (if (setq s(ssget)) (progn
- (setq pt2 (nth 1(grread 5)))
- (setq pt3 (polar pt2 0 2.5))
- (command "MIRROR" s "" PT2 pt3 "Y" "MOVE" "P" "" PT3 PAUSE)
- ))
- (princ)
- )
- ;;------------------------------------------------------------------------------
- (defun C:H-MR-MV-N (/ s l n s1 pt2 pt3)
- (command)
- (if (setq s(ssget)) (progn
- (setq pt2 (nth 1(grread 5)))
- (setq pt3 (polar pt2 (* 0.5 pi) 2.5))
- (setq s1 (entlast) ss (ssadd))
- (command "MIRROR" s "" PT2 pt3 "N")
- (while (setq s1 (entnext s1)) (ssadd s1 ss))
- (command "MOVE" ss "" PT3 PAUSE)
- ))
- (princ)
- )
- ;;------------------------------------------------------------------------------
- (defun C:V-MR-MV-N (/ s l n s1 pt2 pt3)
- (command)
- (if (setq s(ssget)) (progn
- (setq pt2 (nth 1(grread 5)))
- (setq pt3 (polar pt2 0 2.5))
- (setq s1 (entlast) ss (ssadd))
- (command "MIRROR" s "" PT2 pt3 "N")
- (while (setq s1(entnext s1)) (ssadd s1 ss))
- (command "MOVE" ss "" PT3 PAUSE)
- ))
- (princ)
- )
- ;;--------------------------------------------------------------------------------
|