I accidentally left that in I guess. AppServ is from an Import statement where I have
Imports AppServ = Autodesk.AutoCAD.ApplicationServices
I do that because there is more than one Application Namespace, so having a specific name for the Autocad App Services helps to keep ambiguous references to a minimum.
and AcDocs is my reference to the Document Manager.
"So, is the BlockTableRecord more a list of entities in the DWG and the BlockReference, just one type an entity, a block or has AutoCAD calls it an "INSERT"?"
The BlockReference is precisely the same as the Lsp "INSERT". A BlockTableRecord is the same as a "BLOCK" in Lsp, or a Block Definintion in AutoCAD. The BlockTableRecord is a Non-Graphical Object. When a BlockReference is inserted, Autocad looks at the BlockTableRecord for that block to see what to draw.
The Model Space and the Paper Space are each also stored as BlockTableRecords. So for access to any Graphical Entities in Model or Paper, you open the *ModelSpace or *PaperSpace BlockTableRecord and loop through it. (Though you would usually only loop through the whole model or paper space if you had to find a bunch of different types of items to work with. Otherwise, as in your case, you can create a selection set with a filter that contained all "INSERT"s named BLOCKNAME)
Dave O.