- ;; 需要e派工具箱的支持
- (defun c:tt ()
- (CMDLA0)
- (setq ss (ssget '((0 . "*LINE,ARC,CIRCLE,ELLIPSE")))
- i -1
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (xyp-Offset s1 100 t nil nil)
- (setq la (xyp-get-dxf 8 s1)
- s2 (entlast)
- s3 (xyp-line (vlax-curve-getstartPoint s1)
- (vlax-curve-getstartPoint s2)
- )
- s4 (xyp-line (vlax-curve-getendPoint s1)
- (vlax-curve-getendPoint s2)
- )
- )
- (xyp-SubUpd s3 8 la)
- (xyp-SubUpd s4 8 la)
- )
- (CMDLA1)
- )
|