[Search tip detail and code files using keywords, tip number, author name, etc ]
 
Unlock Stubborn Locked Files
Tip# 4007 By Danny Korem On 29-Oct-2012
0
Rated By 0 users
Categories : File Data
Software type : AutoCAD 2013
Rename File To : No Files to download.
Delete DWL files if AutoCAD fails to do so automatically.

Frequent tipster Danny Korem sent in a tip that can help you with AutoCAD files that remain locked even though they're not open.

"Many times I hear one coworker sharing a project say to another, 'Please save the file and close it, so I can have access to it,' and the answer, 'I was done with it 10 minutes ago.' In that case, look for the DWL (drawing lock) file in the same folder that the file resides in. When a file is closed by the user, AutoCAD should delete the lock file by itself, but sometimes it needs a little help. Don't worry, the operating system won't let you delete a lock file if the DWG is in use. As far as I know, DWL files don't contain any contents, and AutoCAD opens them to avoid non-singular access to drawings."

Notes from Cadalyst Tip Reviewer Brian Benton: Ever since AutoCAD 2000 (I believe that's the correct release, but feel free to correct me in the comments if I am wrong), AutoCAD has automatically generated a DWL (lock file) when a DWG file is opened. This is to prevent multiple users from opening and editing the same file simultaneously. Sometimes, especially when AutoCAD crashes unexpectedly, the DWL and/or the DWL2 files will remain, which could prevent users from opening the files. If this happens, then delete them. If you try to delete them while a user has the file open, you will not be allowed to. The DWL file is a plain text file and the DWL2 is an XML ASCII file. There are programs that can read the information inside them if you're interested; essentially they log who has opened the file and when. If you want to know who has a file opened, type WhoHas on the Command line in AutoCAD and browse to the file.

 

Average Rating:
0


User comments
Comment by McSwain,R.K.
Posted on 2012-10-29 20:49:40
DWL/DWL2 files are not lock files. Their presence is only for "whohas", and does not prevent the DWG from being opened. You can test this by opening a DWG and then use Task Manager to kill AutoCAD. The DWL/DWL2 files will remain. Open AutoCAD and then open the same DWG again with no problem.
Comment by Becker,Juergen
Posted on 2012-10-30 08:14:39
Brian, I think you're not quite correct. You write: "This is to prevent multiple users from opening and editing the same file simultaneously. Sometimes, especially when AutoCAD crashes unexpectedly, the DWL and/or the DWL2 files will remain, which could prevent users from opening the files." What I think is that AutoCAD use the locking mechanism of the OS. Therfore for this reason, the DWL files not used. Many thanks for the command WhoHas. Regards J├╝rgen


Log In