Method OpenForEditing
OpenForEditing(string)
Opens a sheet set data file as the Sheet Set Manager does to work in it (D21): the file is read, and the lock file beside it is looked at. A set whose file is read-only, or whose lock is another user's, opens read-only (IsReadOnly, LockedBy) and no lock file is written. Otherwise this user takes the lock: the .DBL file is written (CadSheetSetLock) and stays until ReleaseLock(). A folder the lock file cannot be written in makes the set read-only too.
public static CadSheetSetFile OpenForEditing(string path)
Parameters
pathstringThe path of the .dst.
Returns
- CadSheetSetFile
The file.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- FileNotFoundException
Thrown when there is no such file.
- FormatException
Thrown when the file is not a sheet set data file.