registry-acad-product-key | ![]() |
(registry-acad-product-key)
Returns the subtree of the current Autodesk product without the leading "HKEY_CURRENT_USER\\" or "HKEY_LOCAL_MACHINE\\" and without trailing backslash.
(registry-acad-product-key) => "Software\\Autodesk\\AutoCAD\\R14.0\\ACAD-2450602:33318886" (setq local-key "HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\" version (registry-get (strcat local-key "CurVer"))) => "R14.0" (setq product-key (registry-get (strcat local-key version "\\CurVer"))) => "ACAD-2450602:33318886"
It is used to access the global ("HKEY_LOCAL_MACHINE\\") or user ("HKEY_CURRENT_USER\\") sections in the registry for the running AutoCAD or its derived products as Mechanical Desktop, AutoCAD Map, Architectural Desktop or an OEM version.
registry-acad-product-key is the same as the according Vital Lisp 3 and Visual Lisp function (vlax-product-key).
Note:
Every different AutoCAD installation or its derived product (MCAD, OEM) has a different subtree, which is accessed by this function. The last part of the product key (the value of the symbol product-key
in the above example) is derived from the exe version ("ACAD"), the universal date of the installation ("2450602") and a random number ("33318886").
None.
A part of the subkey for the current AutoCAD product.
None.
(std-require 'REGISTRY)
Defined in REGISTRY