Open C3D file in Read-Only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I found this method, https://www.cad-notes.com/open-autocad-drawings-as-read-only-using-right-click-from-explorer/, to create a shortcut to right-click open any file in read-only but I have Carlson running on top of Vanilla CAD on the computers. So what happens when you do this is it opens the drawing in Carlson. I do not want to reassoaciate dwg to Vanilla CAD, so is there a way to revise this script so it opens specifically in Vanilla CAD no matter what other applications are on this computer?
Below is script if you want to avoid going to the link:
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 = normal
acadApp.Documents.Open cmd_arg(0), True
Thank you