Several versions ago, I had written something to automate making some blocks based on location.
I found it useful.
Trying to make the code work in new version of Autocad, and it fails.
(entmake (list (cons 0 "BLOCK")
(cons 2 (caar n))
(cons 70 0)
(cons 10 (cadr n))
)
)
(while (< i count_them)
(setq it (cdr (entget (ssname them i))))
(entmake it)
(setq i (+ i 1))
)
(entmake '((0 . "ENDBLK")))
The selection set is valid, and the list of entities IS created - it produces duplicates.
But the entmake for the ENDBLOCK returns nil.
To make something like this work, do I now need to write to the block table more directly?
Or what?
thanks