well, I don't see where it is selected in that code ... actually there is no selection in the code you have posted. The program iterates through each block in the drawing .. and opens them via DBX .. in which case you wouldn't select anything anyway ... are you talking about the other code or is there something going on I don't know about.