CAD注册表格式讲解
最近接到一个任务,其中一个环节为使用注册表启动不同版本CAD,所以我就抽空研究了下CAD的注册表。
CAD2015的注册表路径为“HKEY_LOCAL_MACHINE\Software\Autodesk\AutoCAD\R20.0\ACAD-E001:409 ”,初看时,一脸懵逼,本着好学的心里,研究起来。最后得出结论CAD格式为:HKEY_LOCAL_MACHINE\Software\Autodesk\AutoCAD\ [Release Number]\ACAD-[Product ID]:[Locale ID]
注意我用中括号圈起来并加粗的部分,要讲解的就是这几个,等看完这篇文章,你对CAD注册表就有所了解,并可以获得所有版本CAD的注册表路径。
前面这一串“HKEY_LOCAL_MACHINE\Software\Autodesk\AutoCAD”是CAD所有版本的注册表存放路径,我要讲解的是后面那部分。那它到底是个什么东西呢?
发布版本号(Release Number)
注册表中R20.0对应的是CAD的Release Number,不同年发布的CAD版本号不同,下面是各个版本CAD的Release Number。
CAD | Release Number |
---|---|
AutoCAD 2000 | 15.0 |
AutoCAD 2000i | 15.0 |
AutoCAD 2002 | 15.0 |
AutoCAD 2004 | 16.0 |
AutoCAD 2005 | 16.1 |
AutoCAD 2006 | 16.2 |
AutoCAD 2007 | 17.0 |
AutoCAD 2008 | 17.1 |
AutoCAD 2009 | 17.2 |
AutoCAD 2010 | 18.0 |
AutoCAD 2011 | 18.1 |
AutoCAD 2012 | 18.2 |
AutoCAD 2013 | 19.0 |
AutoCAD 2014 | 19.1 |
AutoCAD 2015 | 20.0 |
AutoCAD 2016 | 20.1 |
AutoCAD 2017 | 21.0 |
AutoCAD 2018 | 22.0 |
AutoCAD 2019 | 23.0 |
AutoCAD 2020 | 23.1 |
产品ID(Product ID)
在Release Number后面紧随的是产品号,即“ACAD-E001”中的“E001”,在2006之前Product ID用3位16进制数表示,2006之后用4位十六进制数表示,每一位数字具体表示什么,感兴趣的可以在网上搜索,这里就不多加说明,你只需要知道这一串数字表示产品ID即可。下面列出不同版本CAD的产品ID:
CAD | Product ID |
---|---|
AutoCAD 2000i | 001 |
AutoCAD 2002 | 101 |
AutoCAD 2004 | 215或207 |
AutoCAD 2005 | 301 |
AutoCAD 2006 | 4001 |
AutoCAD 2007 | 5001 |
AutoCAD 2008 | 6001 |
AutoCAD 2009 | 7001 |
AutoCAD 2010 | 8001 |
AutoCAD 2011 | 9001 |
AutoCAD 2012 | A001 |
AutoCAD 2013 | B001 |
AutoCAD 2014 | D001 |
AutoCAD 2015 | E001 |
AutoCAD 2016 | F001 |
AutoCAD 2017 | 0001 |
AutoCAD 2018 | 1001 |
AutoCAD 2019 | 2001 |
AutoCAD 2020 | 3001 |
区域ID(Locale ID)
顾名思义,区域ID代表的是区别不同地区的意思,也就是语言(language)。locale Id在产品ID后面,并在前面加上冒号。CAD2015的注册表路径中,409就是locale ID,不同区域的CAD locale ID不同,409表示的是英文,804表示的是简体中文,404代表的是Not Found,开个玩笑,404代表的是繁体中文。下面列出所有的locale ID:
LocaleID | Lang.abbr. | Jazyk |
---|---|---|
409 | ENU | English |
407 | DEU | German |
040C | FRA | French |
410 | ITA | Italian |
040A | ESP | Spanish |
415 | PLK | Polish |
040E | HUN | Hungarian |
405 | CSY | Czech |
419 | RUS | Rusian |
416 | PTB | Brazilian Portuguese |
804 | CHS | Simplified Chinese |
404 | CHT | Traditional Chinese |
412 | KOR | Korean |
411 | JPN | Japanese |
附参考资料:
https://jtbworld.com/autocad-information#AutoCAD-registry-details
https://www.cadforum.cz/cadforum_en/products.asp
https://www.cadforum.cz/cadforum_en/product-codes-registry-of-autodesk-cad-applications-tip6922