;; 凑个热闹
 - ;; 曲线选择集批量交点插入块
- ;; 需要e派工具箱的支持
- (defun c:tt (/ s0 p0 ss pt)
- (CMDLA0)
- (if (and (setq s0 (car (entsel "\n选择图块: ")))
- (xyp-etype s0 "insert")
- )
- (progn
- (redraw s0 3)
- (setq p0 (xyp-get-dxf 10 s0))
- (princ "\n选择曲线: ")
- (xyp-Group0)
- (if (setq ss (ssget '((0 . "*LINE,ARC,CIRCLE,ELLIPSE"))))
- (foreach pt (xyp-Get-CurveInters ss)
- (xyp-copymove s0 p0 pt)
- )
- )
- (xyp-Group1)
- (redraw s0 4)
- )
- )
- (CMDLA1)
- )
|