In olden days you could do this to open a DGN file read-only:
mgds_modes.dgn_read_only = TRUE; mdlSystem_newDesignFile ("file spec");
Regards, Jon Summers LA Solutions
Hi Todd,
Your comments have told us the trick as following:
mgds_modes.always_read_only = TRUE; mdlSystem_newDesignFile ("C:\\mast.dgn");
Todd, your comments have told us the trick as following: mgds_modes.always_read_only = TRUE; mdlSystem_newDesignFile ("C:\\mast.dgn");
Thanks for your help. That does the trick.
As a thank-you, here's a C++ class that saves and restores the state of the read-only flag automatically. You can use it when iterating a number of files that you want to examine read-only.