Author Topic: what Service Packs is installed  (Read 2688 times)

0 Members and 1 Guest are viewing this topic.

Humbertogo

  • Guest
what Service Packs is installed
« on: May 16, 2006, 02:30:48 AM »
Is there any way to check what Service Packs is installed
Whit out running acad, Using VB6 (Autocad Mechanical 2006)

Thanks

Jürg Menzi

  • Swamp Rat
  • Posts: 599
  • Oberegg, Switzerland
Re: what Service Packs is installed
« Reply #1 on: May 16, 2006, 02:46:37 AM »
Check the sysvar _VERNUM:
Code: [Select]
    Z.77.0 AutoCAD 2006 with Service Pack 1 installed
    Z.54.1 AutoCAD 2006 initial release

    N.84.0 AutoCAD 2005 with Service Pack 1 installed
    N.63.0 AutoCAD 2005 initial release

    V.1.22 AutoCAD 2004 with Service Pack 1a installed
    V.0.86 AutoCAD 2004 initial release

    K.0.44 AutoCAD 2002 with Service Pack 1 installed
    K.0.30 AutoCAD 2002 initial release

    U.1.81 AutoCAD 2000i with Service Pack 2 installed
    U.1.20 AutoCAD 2000i with Service Pack 1 installed
    U.0.90 AutoCAD 2000i initial release

    T.1.09 AutoCAD 2000 with Service Pack 2 installed
    T.1.08 AutoCAD 2000 with Service Pack 1 installed
    T.0.98 AutoCAD 2000 initial release

Application.ActiveDocument.GetVariable("_VERNUM")

Cheers
Jürg
« Last Edit: May 16, 2006, 02:50:31 AM by Jürg Menzi »
A computer's human touch is its unscrupulousness!
MENZI ENGINEERING GmbH
Current A2k16... A2k24 - Start R2.18

Humbertogo

  • Guest
Re: what Service Packs is installed
« Reply #2 on: May 16, 2006, 03:30:52 AM »
can i call the sysVariable without running acad..?

Jürg Menzi

  • Swamp Rat
  • Posts: 599
  • Oberegg, Switzerland
Re: what Service Packs is installed
« Reply #3 on: May 16, 2006, 04:06:19 AM »
can i call the sysVariable without running acad..?

Nope...

In this case you've to check the 'Release' field in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R16.2\ACAD-4001:409
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R16.1\ACAD-301:409
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R16.0\ACAD-201:409
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R15.0\ACAD-1:409

Note:
The release number can be at different positions of the release number block and also have different values:
2k6 SP1 = 16.2.77.0
2k5 SP1 = 16.1.84.0
2k4 SP1a = 16.0.0.124
2k2 SP1 = 15.0.6.044
A computer's human touch is its unscrupulousness!
MENZI ENGINEERING GmbH
Current A2k16... A2k24 - Start R2.18

Humbertogo

  • Guest
Re: what Service Packs is installed
« Reply #4 on: May 16, 2006, 05:07:40 AM »
thanks