创建块应该用block 不是insert- (If (Not (TblSearch "BLOCK" "test123"))
- (progn
- (EntMake '((0 . "BLOCK")(2 . "test123")(8 . "0") (100 . "AcDbBlockReference")(70 . 0)(10 0.0 0.0 0.0)))
- (EntMake
- (list
- '(0 . "CIRCLE")
- '(8 . "0")
- '(10 0.0 0.0 0.0)
- (cons 40 100)
- )
- )
- (EntMakex
- (list
- (cons 0 "attdef")
- (cons 10 (list 0 0 0))
- (cons 40 300)
- (cons 1 "1")
- (cons 2 "1")
- (cons 3 "1")
- (cons 70 0)
- )
- )
- (EntMake '((0 . "ENDBLK")))
-
- )
- )
|