Dictionary error

Discussion in 'AutoCAD' started by Danny P., Mar 4, 2004.

  1. Danny P.

    Danny P. Guest

    I would like to add a dictionary to a dictionary but I'm getting an error
    which, from other posts here, should only appear in Acad2000. However, I'm
    getting it in Acad2004. Can someone confirm this error for me, or suggest a
    better solution.

    Thanks in advance,
    Danny Polkinhorn
    WATG
    Honolulu

    This code:

    Dim objDict As AcadDictionary
    Dim objNestedDict As AcadDictionary

    Set objDict = ThisDrawing.Dictionaries.Add("Dict_Root")
    Set objNestedDict = objDict.AddObject("Sub_Dict", "AcDbDictionary")

    Gives this error:

    Run-time error -2145320940
    AcRxClassName entry is not in the system registry
     
    Danny P., Mar 4, 2004
    #1
  2. Open RegEdit and look at this key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\ObjectDBX\ActiveXCLSID

    Under it, there should be a subkey named "AcDbDictionary".

    It should have the following item:

    CLSID={F8DD32D1-F7DF-11D1-A2C8-080009DC639A}



    AcadX for AutoCAD 2004 Beta 1
    http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip
     
    Tony Tanzillo, Mar 4, 2004
    #2
  3. Danny P.

    Danny P. Guest

    Tony,

    Thanks for your help. I do have that registry entry exactly as shown.

    -Danny
     
    Danny P., Mar 4, 2004
    #3
  4. Tony Tanzillo, Mar 4, 2004
    #4
  5. Oops. The first key I showed only applies to R15.

    For 2004, you have to look here (note the "R16.0" subkey):

    HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\ObjectDBX\R16.0\ActiveXCLSID

    And, the value under the AcDbDictionary item should be:

    CLSID={B4245981-1737-491D-9BA1-88D628259F4F}

    And, under

    HKEY_CLASSES_ROOT\
    CLSID\
    {B4245981-1737-491D-9BA1-88D628259F4F}\
    InprocServer32

    The default value should be "AxDb16.dll"




    AcadX for AutoCAD 2004 Beta 1
    http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip
     
    Tony Tanzillo, Mar 4, 2004
    #5
  6. Danny P.

    Danny P. Guest

    Tony,

    Thanks. The entire ActiveXCLSID section was missing. I added it in and it
    works.

    Thanks again for your help...
    -Danny
     
    Danny P., Mar 4, 2004
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.