用你的代码建立的WIPEOUT,下面是数据
命令: (entget (entlast))
((-1 . <图元名: 7ff42c105d30>) (0 . "WIPEOUT") (330 . <图元名: 7ff42c1039f0>) (5 .
"24B") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 .
"AcDbWipeout") (90 . 0) (10 2199.21 591.266 0.0) (11 1000.0 0.0 0.0) (12 0.0
1000.0 0.0) (13 1.0 1.0 0.0) (340 . <图元名: 0>) (70 . 7) (280 . 1) (281 . 50)
(282 . 50) (283 . 0) (290 . 0) (360 . <图元名: 0>) (71 . 2) (91 . 51) (14 0.5 0.0
0.0) (14 0.496057 -0.0626666 0.0) (14 0.484292 -0.124345 0.0) (14 0.464888
-0.184062 0.0) (14 0.438153 -0.240877 0.0) (14 0.404508 -0.293893 0.0) (14
0.364484 -0.342274 0.0) (14 0.318712 -0.385257 0.0) (14 0.267913 -0.422164 0.0)
(14 0.21289 -0.452414 0.0) (14 0.154508 -0.475528 0.0) (14 0.0936907 -0.491144
0.0) (14 0.0313953 -0.499013 0.0) (14 -0.0313953 -0.499013 0.0) (14 -0.0936907
-0.491144 0.0) (14 -0.154508 -0.475528 0.0) (14 -0.21289 -0.452414 0.0) (14
-0.267913 -0.422164 0.0) (14 -0.318712 -0.385257 0.0) (14 -0.364484 -0.342274
0.0) (14 -0.404508 -0.293893 0.0) (14 -0.438153 -0.240877 0.0) (14 -0.464888
-0.184062 0.0) (14 -0.484292 -0.124345 0.0) (14 -0.496057 -0.0626666 0.0) (14
-0.5 -6.04901e-016 0.0) (14 -0.496057 0.0626666 0.0) (14 -0.484292 0.124345
0.0) (14 -0.464888 0.184062 0.0) (14 -0.438153 0.240877 0.0) (14 -0.404508
0.293893 0.0) (14 -0.364484 0.342274 0.0) (14 -0.318712 0.385257 0.0) (14
-0.267913 0.422164 0.0) (14 -0.21289 0.452414 0.0) (14 -0.154508 0.475528 0.0)
(14 -0.0936907 0.491144 0.0) (14 -0.0313953 0.499013 0.0) (14 0.0313953
0.499013 0.0) (14 0.0936907 0.491144 0.0) (14 0.154508 0.475528 0.0) (14
0.21289 0.452414 0.0) (14 0.267913 0.422164 0.0) (14 0.318712 0.385257 0.0) (14
0.364484 0.342274 0.0) (14 0.404508 0.293893 0.0) (14 0.438153 0.240877 0.0)
(14 0.464888 0.184062 0.0) (14 0.484292 0.124345 0.0) (14 0.496057 0.0626666
0.0) (14 0.5 0.0 0.0))
你代码里面写071, 生成的时候也是71啊
你改成这样,一样的
 - ;; Circular Wipeout - Lee Mac
- ;; Creates a circular wipeout with the given center (UCS) & radius
- (defun LM:CircularWipeout ( cen rad / ang inc lst )
- (setq acc 50
- inc (/ pi acc 0.5)
- ang 0.0
- )
- (repeat acc
- (setq lst (cons (list 14 (* 0.5 (cos ang)) (* 0.5 (sin ang))) lst)
- ang (+ ang inc)
- )
- )
- (entmakex
- (append
- (list
- '(000 . "WIPEOUT")
- '(100 . "AcDbEntity")
- '(100 . "AcDbWipeout")
- (cons 10 (trans (mapcar '- cen (list rad rad)) 1 0))
- (cons 11 (trans (list (+ rad rad) 0.0) 1 0 t))
- (cons 12 (trans (list 0.0 (+ rad rad)) 1 0 t))
- '(280 . 1)
- '(71 . 2)
- )
- (cons (last lst) lst)
- )
- )
- )
|