How would you do this in Windows 7? Apparently, windows explorer in Win7 doesn't give you any "apparent" options to do anything with anything. Maybe I just need a Windows 7 for dummys book or something.
No, I think the friendly interface has disappeared. However, you can add it by the registry.
The below sample is for AutoCAD 2010. Change the "18" to "17" for AutoCAD 2007-2009. Change the text in green to match your file location and name.
Code:Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\AutoCAD.Drawing.18\shell\Open_as_Read_Only] @="Open as Read Only" [HKEY_CLASSES_ROOT\AutoCAD.Drawing.18\shell\Open_as_Read_Only\command] @="\"C:\\Acad\\Cache\\Open DWG as Read Only.cmd\" \"%1\""
R. Robert Bell
Design Technology Manager
S P A R L I N G
Opinions expressed are mine alone and do not reflect the views of Sparling.
R. Robert Bell
Design Technology Manager
S P A R L I N G
Opinions expressed are mine alone and do not reflect the views of Sparling.
v good dear nice sharing keep it up.
JAMAL
Great tip, but the only reason i wanted to open a DWG in read only is when the file isnt mine to edit, i just wish to review it. If the file is currently opened by another user, this batch file doesnt work - i get a cmd message saying "The process cannot access this file because it is being used by another process"
Obviously i can use Autocad's open read only way, but i was hoping this could be done by explorer.
Any help/suggestions?
edit- Im using winXP SP3 and the files are located on a server.
In that case...
Save this to OpenReadOnly.vbs anywhere, say drive C.Code:On Error Resume Next dim cmd_arg set cmd_arg=wscript.Arguments Dim acadApp Set acadApp = GetObject(, "AutoCAD.Application") If Err Then Err.Clear Set acadApp = CreateObject("AutoCAD.Application") End if acadApp.visible=True acadApp.WindowState = 3 acadApp.Documents.Open cmd_arg(0), True
Then the command under Application used to perform action: would be
wscript.exe C:\OpenReadOnly.vbs "%1"
Tested on local files in AutoCAD 2008 XP SP3 Platform. Please try if it will work on other versions and network files.
Shielbern Bolalin
Architectural 3D Renderer
----------------------------------------------------------------------
“A clever person solves a problem. A wise person avoids it.”
1879-1955