here is a small function to query the name of each block in the current drawing
void CDrvAcad::GetBlockList(CStringList *pList)
{
IAcadBlocksPtr pBlocksCollection = m_acadDoc->GetBlocks();
IAcadBlockPtr pBlock;
_variant_t index;
index.vt = VT_I4;
long count =...