I have code which creates a new block by using dynamic blocks. The dynamic blocks are inserted and their parameters set, then they are added to the new block (see code below). This is working good, the new block gets created using the dynamic blocks which have all the right parameter settings and dimensions. The problem is that when this block is inserted, it looks good, but the user cannot snap to any of the geometry within the dynamic blocks. For example, when measuring, they can't snap to a corner of any dynamic block within the main block. Does anyone have any idea why this would be? Am I creating the dynamic blocks wrong? Or building the new block wrong? Thanks!
Quickly looking at this... what happens if you first add the dynblock to the database, then, update the dynamic properties? Also, make sure you call bdb.CloseInput(true) after your call to ReadDWGFile() so that the entire file is read in.