By Adam Nagy
When a side database is read in using any mode other than SH_DENYNO, some OMF functionalities do not work properly. For example, when wall properties are queried, the following error may occur:
*Area Not Found*
The problem is due to the way that AutoCAD handles the reading of side databases, thus AutoCAD Architecture cannot do much in this regard.
You'll also find that some of the ACA/MEP entities do not behave as you'd expect them in case of using RealDWG to open AutoCAD Architecture or MEP drawings. E.g. the ACA/MEP entities might not call the drawing primitives of your AcGi implementation when you make them draw themselves.
If side databases are opened with SH_DENYNO, they are fully loaded and the relationship graph will be complete.
If they are loaded any other way, you need to call AecAppDbx::drawingPromoterAndIniter() or AcDbDatabase::closeInput() on it. That forces all objects to be pulled from the disk.
This is not ideal, but it is the only way that AutoCAD Architecture can guarantee that the relationship graph is complete. This function always needs to be called to make sure that the necessary promotion and cleanup takes place.
So, the solution is to either open the side database with SH_DENYNO, or call AecAppDbx::drawingPromoterAndIniter() or AcDbDatabase::closeInput() on the opened database.