Another, note had to add a couple of no plot block names, the Aecc* blocks are part of Civ3D. There may be more.
Just start with block dwg and have Model space blank. I have 196 blocks it got to 83 so have another screwy block to find. Found "_none" at 83 rd entry.
(defun c:foo2 (/ p p1 p2 blk bame)
(setvar 'ctab "Model")
(setq p (getvar 'dwgprefix))
(setvar 'filedia 0)
(vlax-for blk (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
(setq bname (vla-get-name blk))
(if (or (wcmatch bname "*_Space*")(wcmatch bname "Aecc*")(wcmatch bname "*X9*"))
(princ "skipped")
(progn
(command "-INSERT" bname (list 0 0) 1 1 0)
(command "zoom" "Extents")
(command "-.pngout" (strcat p bname)(entlast) "")
;(command "_.pngout" (strcat "D:\\ACADTEMP\\PNG\\" bname)(entlast) "")
(command "erase" (entlast) "")
)
)
)
(princ)
)
(c:foo2)
Block names
(princ (vla-get-count (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))))
(vlax-for blk (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
(princ (strcat "\n" (vla-get-name blk)))
)