ProgID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Helllo Autodesk Support,
We are currently facing an issue with running two different versions of AutoCAD on the same machine: AutoCAD 2021 for automation purposes and AutoCAD 2024 for manual drawing tasks. Such setup is needed due to the different configurations, plugins, and locales each version requires.
Before the dual installation, our automation scripts were running smoothly as they engaged AutoCAD 2021 only as a Win32 COM Server. However, after installing AutoCAD 2024, we noticed that it has overridden the Windows Registry records related to the AutoCAD 2021 COM servers, such as HKEY_CLASSES_ROOT\AutoCAD.Application, among others. As a result, AutoCAD 2024 launches every time we try to execute our automation scripts.
We've attempted to address this by using the ProgID: "AutoCAD.Application.24.0", as suggested in the official guide: https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-0EDC04D5-2ACB-4555-B5AC-936D54A9FF61. However, when we tried to create an AutoCAD instance using this ProgID, we encountered an "Invalid class string" error. Upon checking the Windows Registry, we found that the record "AutoCAD.Application.24.0" was absent, and all existing "AutoCAD.Application.*" records with corresponding CLSID's pointed to "C:\Program Files\Autodesk\AutoCAD 2024\acad.exe" only.
Could you please assist us with configuring our registry or AutoCAD instances to ensure the AutoCAD 2021 version is always used for our automation scripts? Additionally, we would appreciate guidance to ensure this configuration isn't overridden by manual runs of AutoCAD 2024 or by the installation of any other versions in the future.
Thank you in advance for your support and guidance.