- (defun c:bfb ()
- (setvar "cmdecho" 0)
- (alert "设定标记颜色默认<绿色>")
- (setq cc (acad_colordlg 3))
- (alert "设定标记圆直径默认<3>")
- (setq rc (getreal "\n指定标记圆的直径<3>:"))
- (if (= rc nil)
- (setq rc 3)
- )
- (setq ss (ssget (LIST
- '(-4 . "<OR")
- '(0 . "LINE,ARC")
- '(-4 . "<AND")
- '(0 . "ELLIPSE")
- '(-4 . "<OR")
- '(-4 . "<>")
- '(41 . 0.0)
- '(-4 . "<>")
- (cons 42 (* pi 2))
- '(-4 . "OR>")
- '(-4 . "AND>")
- '(-4 . "<AND")
- '(0 . "LWPOLYLINE,SPLINE")
- '(-4 . "<NOT")
- '(-4 . "&=")
- '(70 . 1)
- '(-4 . "NOT>")
- '(-4 . "AND>")
- '(-4 . "<AND")
- '(0 . "PLOYLINE")
- '(-4 . "<NOT")
- '(-4 . "&")
- '(70 . 89)
- '(-4 . "NOT>")
- '(-4 . "AND>")
- '(-4 . "OR>")
- (if (= 1 (getvar 'cvport))
- (cons 410 (getvar 'ctab))
- '(410 . "Model")
- )
- )
- )
- )
- (setq i 0)
- (if ss
- (repeat (sslength ss)
- (setq en (ssname ss i))
- (setq spt (vlax-curve-getstartpoint en)
- ept (vlax-curve-getendpoint en)
- )
- (entmake (list (cons 0 "CIRCLE")
- (cons 10 spt)
- (cons 40 (/ rc 2))
- (cons 62 cc)
- )
- )
- (entmake (list (cons 0 "CIRCLE")
- (cons 10 ept)
- (cons 40 (/ rc 2))
- (cons 62 cc)
- )
- )
- (setq i (1+ i))
- )
- )
- )
|