Automation projects created with the VBA IDE in AutoCAD 2014 or earlier, or stand-alone applications created with Visual Basic .NET will need to be updated to work with the latest AutoCAD release.
AutoCAD automation projects use the type libraries
-
acax<release><language>.tlb
- cao16<language>.tlb - AutoCAD 2014 and earlier
- cao20<language>.tlb - AutoCAD 2015 and later
Note: <release> is specific to which release of the product is installed and
<language> is specific to which language AutoCAD is using. The type libraries are located in the folder:
<drive>:\Program Files\Common Files\Autodesk Shared
AutoCAD automation projects use the
AutoCAD.Application ProgID for the
CreateObject,
GetObject, and
GetInterfaceObject methods. For example, if you are using the
CreateObject function in an AutoCAD automation project, you can use
CreateObject("AutoCAD.Application") to start the most recently launched AutoCAD release on the workstation.
An automation project can start a specific release of the product, by specifying the major and/or a minor release number as part of the ProgID. For example, the ProgID
- "AutoCAD.Application.24" starts
AutoCAD 2021
- "AutoCAD.Application.23.1" starts
AutoCAD 2020
- "AutoCAD.Application.23.0" starts
AutoCAD 2019
- "AutoCAD.Application.23" starts
AutoCAD 2019 or
AutoCAD 2020
- "AutoCAD.Application.22" starts AutoCAD 2018
- "AutoCAD.Application.21" starts AutoCAD 2017
- "AutoCAD.Application.20.1" starts AutoCAD 2016
- "AutoCAD.Application.20.0" starts AutoCAD 2015
- "AutoCAD.Application.20" starts AutoCAD 2015 or AutoCAD 2016
- "AutoCAD.Application.19.1" starts AutoCAD 2014
- "AutoCAD.Application.19.0" starts AutoCAD 2013
- "AutoCAD.Application.19" starts AutoCAD 2013 or AutoCAD 2014
Note: The specific version you are trying to start must be installed.