TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: velasquez on June 30, 2011, 07:47:32 AM

Title: AutoCAD in Windows registry
Post by: velasquez on June 30, 2011, 07:47:32 AM
In the Windows registry: HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R18.1\ACAD-9001:409
AutoCAD 2011 is R18.1 Curver is 9001:409
Can anyone tell me these values ​​for AutoCAD 2012?

Thanks
Title: Re: AutoCAD in Windows registry
Post by: Lee Mac on June 30, 2011, 07:49:16 AM
Code: [Select]
(vlax-product-key)
Title: Re: AutoCAD in Windows registry
Post by: velasquez on June 30, 2011, 08:32:44 AM
Code: [Select]
(vlax-product-key)

I forgot to say that I do not have AutoCAD 2012 installed.
Title: Re: AutoCAD in Windows registry
Post by: highflyingbird on June 30, 2011, 08:36:23 AM
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R18.2\ACAD-A001:409
-----------------------------------------------------------
Version    Format                       Hex:Country
2004        R16.0                      2001 : 409
2005        R16.1                      3001 : 409
2006        R16.2                      4001 : 409
2007        R17.0                      5001 : 409
2008        R17.1                      6001 : 409
2009        R17.2                      7001 : 409
2010        R18.0                      8001 : 409
2011        R18.1                      9001 : 409
2012        R18.2                      A001 : 409
-----------------------------------------------------
2013  ,no  2013   because it's doomsday :wink:
I am not sure it is right.

It doesn't matter, the above function will work on any machine, so if you want to write to that part of the registry, use:

Code: [Select]
(strcat "HKEY_LOCAL_MACHINE\\" (vlax-product-key) "\\" ...)
(vlax-product-key) Good way.
Title: Re: AutoCAD in Windows registry
Post by: Lee Mac on June 30, 2011, 08:51:03 AM
Code: [Select]
(vlax-product-key)

I forgot to say that I do not have AutoCAD 2012 installed.

It doesn't matter, the above function will work on any machine, so if you want to write to that part of the registry, use:

Code: [Select]
(strcat "HKEY_LOCAL_MACHINE\\" (vlax-product-key) "\\" ...)
Title: Re: AutoCAD in Windows registry
Post by: velasquez on June 30, 2011, 10:02:00 AM
Thanks for the replies.

Velasquez