Resurrecting this old thread, as I recently stumbled onto a solution for this issue.
As example:
Say workstation has 2019 and 2021 installed, but 2019 is 'default' for all projects, and you want 2019 to be default version used for DWG double click from File Explorer, simply set this key in registry after copying the desired switches from the application shortcut you normally use:
Code:
(vl-load-com)
;;;--------------------------------------------------------------------;
;; Set default DWG double click open version
(if
(setq vrsn
(substr
(setq vrsn
(vl-registry-read
(strcat
"HKEY_LOCAL_MACHINE\\"
(if vlax-user-product-key ; If 2013+
(vlax-user-product-key) ; Use new function
(vlax-product-key) ; Use legacy function
)
)
"ProductName"
)
)
(- (strlen vrsn) 13)
4
)
)
(progn
(vl-registry-write
"HKEY_CURRENT_USER\\Software\\Autodesk\\DwgCommon\\shellex\\apps\\{F29F85E0-4FF9-1068-AB91-08002B27B3D9}:AutoCAD\\"
"OpenLaunch"
(strcat
"\"C:\\Program Files\\Autodesk\\AutoCAD " vrsn
"\\acad.exe\" /ld \"C:\\Program Files\\Autodesk\\AutoCAD " vrsn
"\\\\AecBase.dbx\" /p \"" (getvar 'cprofile) "\" /product \"C3D\" /language \"en-US\" \"%1\""
)
)
(setq vrsn nil)
;;;--------------------------------------------------------------------;
;; Disable DWG right click print
(vl-registry-write
"HKEY_CURRENT_USER\\Software\\Autodesk\\DwgCommon\\shellex\\apps\\{F29F85E0-4FF9-1068-AB91-08002B27B3D9}:AutoCAD\\"
"PrintDdeExec"
""
)
(vl-registry-write
"HKEY_CURRENT_USER\\Software\\Autodesk\\DwgCommon\\shellex\\apps\\{F29F85E0-4FF9-1068-AB91-08002B27B3D9}:AutoCAD\\"
"PrintLaunch"
""
)
)
)
This can be added to AcadDoc.lsp for all versions or even set via Netlogon script when user logs into Windows.
HTH
[Edit] - Per this post, revised this to work for any version; compared variations using substrings of vlax-user-product-key, vlax-machine-product-key, and (findfile "acad.exe"), and vlax-user-product-key won the speed test.