本帖最后由 maiko 于 2016-6-29 01:04 编辑
;;;来个vla简单的  - (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)
- )
|