Class CadSheetSetLock
The lock file AutoCAD keeps beside a sheet set data file while the set is open for editing: Tower.DBL for
Tower.dst, 58 bytes of text for the user "InuYasha" on the machine "INUYASHA-MEV", the lines ended
\r\r\n as AutoCAD's own writer ends them (measured on AutoCAD 2021): [UserInfo], UserName=InuYasha,
Machine=INUYASHA-MEV and an empty line. A set whose lock is another user's opens read-only, with the lock's
words as the tooltip of the palette's lock icon ("Locked for Edit by InuYasha"). A lock of this user on this machine is
taken as one's own, so that a lock left by a program that was killed does not shut its user out.
public sealed class CadSheetSetLock
- Inheritance
-
CadSheetSetLock
- Inherited Members
Properties
- Description
Gets the words that say who holds the lock, as the lock icon's tooltip shows them: "Locked for Edit by InuYasha on INUYASHA-MEV".
- IsMine
Gets whether the lock is this user's on this machine, the letter case of the names ignored.
- Machine
Gets the machine the lock was taken on (
Machine).
- UserName
Gets the user who holds the lock (
UserName).
Methods
- PathOf(string)
Gets the path of the lock file of a sheet set data file: the .dst's own path with .DBL in place of .dst.
- Read(string)
Reads the lock of a sheet set data file.
- Release(string)
Lets go of the lock of a sheet set data file: deletes the lock file where it is this user's on this machine.
- Take(string)
Takes the lock of a sheet set data file for this user on this machine: writes the lock file, in place of one that is there.