- ;; jdzb(交点遮蔽)
- (defun c:jdzb (/ ss i ptn pt)
- (CMDLA0)
- (xyp-initSet '(dist) '(1000.))
- (setq dist (Udist 1 "" "圆点半径<输入或鼠标直接量取>" dist nil))
- (defun aaa (pt d)
- (command "_polygon" 36 pt "i" (polar pt 0 d))
- (command "wipeout" "p" (entlast) "y")
- )
- (setq ss (ssget '((0 . "*LINE,ARC,CIRCLE,ELLIPSE")))
- i -1
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq ptn (xyp-Get-CurveIntersLeng s1 1)
- ptn (cdr (reverse (cdr ptn)))
- )
- (foreach pt ptn
- (aaa pt dist)
- )
- (command "draworder" s1 "" "f")
- )
- (command "wipeout" "f" "off")
- (CMDLA1)
- )
|