(defun c:tt ( / o d e )
(setq d (getdist "\n输入偏移距离<直接量取>:"))
(setq e (not (getpoint "\n左键不删除 <空格删除>")))
(if (ssget '((0 . "Arc,Circle,Ellipse,*Line")))
(vlax-for o (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object)))
(mapcar '(lambda (x)(vla-offset o x)) (list d (- d)))
(if e (vla-delete o))
)
)
(princ)
)