I would like to verify if a DGN is already opened by another user before using mdlSystem_newDesignFile(...) to open it. The application using the file can be anywhere on the local network.
I know, when the new DGN is opened, I can check mgds_modes.dgn_read_only and go back if it is true, but is not a good way for me because file have many references and the opening was very slow. If I can avoid to open already used file, users will be happy!
I'm trying unsuccesfuly to use mdlFile_getFileAttributes(...).
Many thanks for your ideas...
MicroStation V8 2004 (08.05.02.70), MDL in native code.
I guess it cannot be achieved using MDL API only.
The solution can be to open the file using normal C or C++ function and to check if it's read-only or not. You can find many discussion about this topic on Internet, e.g. here.
Labyrinth Technology | dev.notes() | cad.point
CEO at beCAD a Gold Channel Partner