Please describe in what context you are calling GetActiveDgnModelRefP(). In general if a .dgn file has been opened in mstn and fully loaded, it should return non-null. It can return null or 0xbadf00d under certain circumstances, e.g. during initial model load.
↧