- (defun c:tt (/ ss ent get pp1 pp2 ge)
- (setq ss (ssget))
- (setq ent (car (entsel "\n请选择一根直线为中心镜像:")))
- ;仅取实体
- (setq get (entget ent))
- (setq pp1 (cdr (assoc 11 (cdr get)))) ;(10 x y z)
- (setq pp2 (cdr (assoc 10 (cdr get)))) ;(11 x y z)
- (setq ge (getpoint "\n左键删除源对象/[默认不删除]:"))
- (if (null ge)
- (command "MIRROR" ss "" pp1 pp2 "")
- (command "MIRROR" ss "" pp1 pp2 "y")
- ) ;if
-
- (princ)
- )
|