Dear All,
Lee has won his bet
Fixed before 12 PM GMT
In fact, it was a fault in Lisp's Fast-COM implementation ... the iterator instantiation was using the "allowErasedEntities" in opposite way; hence, the erased entities was also used, but for an erased entity, there is no COM instance, hence the NIL, as Roy reported.
The bug was for BlockTableRecords and SymbolTables.
A workaround until fixed BricsCAD is published (works in all versions) :
(if vle-fastcom (vle-fastcom nil))
(vla-item …)
(if vle-fastcom (vle-fastcom t))
this disables the Fast-COM implementation (using normal Windows COM then) for (vla-item) ... and same code also works on "A" CAD system as well
Many greetings & many thanks for pointing to that bug !