Gets the version of the AutoCAD application you are using.
Supported platforms: Windows only
Read-only: Yes
Type: String
The version of AutoCAD that you are using.
AutoCAD: The value of this property is stored in the ACADVER system variable.
AutoCAD LT: The value of this property is the product's release in the name and not the value stored in the ACADVER system variable.
VBA:
Sub Example_Version()
' This example returns AutoCAD version as a string
Dim version As String
version = ThisDrawing.Application.version
MsgBox "This is AutoCAD Version " & version, , "Version Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_Version()
;; This example returns AutoCAD version as a string
(setq acadObj (vlax-get-acad-object)
doc (vla-get-ActiveDocument acadObj))
(setq version (vla-get-Version acadObj))
(alert (strcat "This is AutoCAD Version " version))
)