I played with your code and got it to work. It appears you need the 100 group codes for hatch. Plus the 210 code should have been '0 0 1'. The following works, don't know if the re-order has any effect:
Code:(setq layername "0" x1 0.0 y1 0.0 z1 0.0 x2 120.0 y2 0.0 z2 0.0 x3 120.0 y3 120.0 z3 0.0 x4 0.0 y4 120.0 z4 0.0) (setq dummyhatch (list (cons 0 "HATCH") '(100 . "AcDbEntity") (cons 8 layername) '(100 . "AcDbHatch") (cons 62 256) (cons 10 (list 0.0 0.0 0.0)) (cons 210 (list 0.0 0.0 1.0)) ;;changed z (cons 2 "SOLID") (cons 70 1) (cons 71 0) (cons 91 1) (cons 92 1) (cons 93 4) (cons 72 1) (cons 10 (list x1 y1 z1)) (cons 11 (list x2 y2 z2)) (cons 72 1) (cons 10 (list x2 y2 z2)) (cons 11 (list x3 y3 z3)) (cons 72 1) (cons 10 (list x3 y3 z3)) (cons 11 (list x4 y4 z4)) (cons 72 1) (cons 10 (list x4 y4 z4)) (cons 11 (list x1 y1 z1)) (cons 97 0) (cons 75 2) (cons 76 1) (cons 98 1) (cons 10 (list 0.0 0.0 0.0)) (cons 470 "LINEAR"))) (entmake dummyhatch)




Reply With Quote


Bookmarks