Consegui contornar o problema e até mesmo lidar melhor com o comportamento dos arquivos .dwg
alterando a maneira como eu instalo a associação de arquivos.
Em vez de modificar HKEY_CLASSES_ROOT\.dwg
, apenas deixo isso em paz e modifico HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dwg\UserChoice
.
Isso substitui a associação padrão dos arquivos .dwg
, e o AutoCAD nem se incomoda.
Se alguém estiver curioso, isso é o que estou fazendo:
AutoCAD_2006_2014.reg
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dwg]
[-HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dwg\UserChoice]
"Progid"="AutoCAD.Drawing.Multi"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi]
@="Open with AutoCAD 2014 / 2006"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\DefaultIcon]
@="C:\Program Files\Autodesk\AutoCAD 2014\en-US\acadficn.dll,49"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell]
@="Open_with_AutoCAD_2014"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2006]
@="Open with AutoCAD 2006"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2006\command]
@="\"C:\Program Files (x86)\AutoCAD 2006\acad.exe\" \"%1\""
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2006\ddeexec]
@="[open(\"%1\")]"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2006\ddeexec\Application]
@="AutoCAD.r16.DDE"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2006\ddeexec\Topic]
@="System"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2014]
@="Open with AutoCAD 2014"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2014\command]
@="\"C:\Program Files\Autodesk\AutoCAD 2014\acad.exe\" \"%1\""
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2014\ddeexec]
@="[open(\"%1\")]"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2014\ddeexec\Application]
@="AutoCAD.r19.DDE"
[HKEY_CLASSES_ROOT\AutoCAD.Drawing.Multi\shell\Open_with_AutoCAD_2014\ddeexec\Topic]
@="System"
Isso permite que o AutoCAD 2006 e o AutoCAD 2014 coexistam no mesmo sistema, sendo o AutoCAD 2014 o padrão, e você pode clicar com o botão direito em qualquer arquivo .dwg
e abrir com o AutoCAD 2006.
Isso foi criado porque alguns de nossos arquitetos estão relutantes em atualizar o AutoCAD 2006, e alguns de nossos scripts são compatíveis apenas com o AutoCAD 2006.
Isso não responde à questão fundamental, então não estou aceitando como resposta. Como redefinir a configuração de associação de DWG no AutoCAD permanece um mistério.