VB.NET with AtuoCAD 2005

Discussion in 'AutoCAD' started by tech-22, Apr 23, 2004.

  1. tech-22

    tech-22 Guest

    I have contentedly used VB.NET with AutoCAD 2002 and 2004.

    Now with AutoCAD 2005, when I reference the AutoCAD 2005 Type Library, the Object Structure has changed.

    With AutoCAD 2004 I had the Assembly, Interop.AutoCAD and one Namespace AutoCAD.

    With AutoCAD 2005 I have the Assembly, Autodesk.AutoCAD.Interop and three Namespaces. Autodesk and Autodesk.AutoCAD are empty and Autodesk.AutoCAD.Interop contains a subset of classes. This does not include any of the primitive classes.

    Can anybody tell me what I should be doing, please?
     
    tech-22, Apr 23, 2004
    #1
  2. Prior to 2005 when you added a reference to the acad type library the
    framework created an interop assembly. Now with 2005 two primary interop
    assemblies created by adesk are installed into the GAC. When you reference
    the acad type libraries the framework actually references these PIA's.
    These PIA's define the new namespaces that you are seeing.

    Other than the "AutoCAD 2005 Type Library", you also need to set a reference
    to "AutoCAD/ObjectDBX Common 16.0 Type Libary". This will add the
    autodesk.autocad.interop.common namespace that contains the rest of the
    classes that you are looking for.

    HTH
    --
    Bobby C. Jones

    the Object Structure has changed.
    Namespaces. Autodesk and Autodesk.AutoCAD are empty and
    Autodesk.AutoCAD.Interop contains a subset of classes. This does not include
    any of the primitive classes.
     
    Bobby C. Jones, Apr 23, 2004
    #2
  3. tech-22

    tech-22 Guest

    Thanks Bobby
    Good information - it works fine.
    Regards,
    Clive
     
    tech-22, Apr 25, 2004
    #3
  4. tech-22

    Sheana Guest

    I set a reference to both the "AutoCAD 2005 Type Library"and the "AutoCAD/ObjectDBX Common 16.0 Type Libary" and still get an error. It says to reference the Autodesk.Autocad.Interop.Common. Can someone please help me?
     
    Sheana, Jan 17, 2005
    #4
  5. Did you reference [acdbmgd.dll acmgd.dll] for you net stuff...?
     
    Paul Richardson, Jan 18, 2005
    #5
  6. <Autodesk.Autocad.Interop.Common
    Sorry For interp....[acax16enu.tlb]
    objects...[axdb16enu.tlb]

    'for AcadApplication. Add reference to acax16enu.tlb
    Imports Autodesk.AutoCAD.Interop

    'for AcadLine or such: add reference to axdb16enu.tlb
    Imports Autodesk.AutoCAD.Interop.Common


     
    Paul Richardson, Jan 18, 2005
    #6
  7. Make sure you remove any references in the source code
    directories....dependnig upon your VS settings, it'll copy the dlls into
    the BIN and OBJ directories and use those references when the real
    references are in the AutoCAD install directories.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jan 18, 2005
    #7
  8. tech-22

    Sheana Guest

    Thanks for the great advice. I found out the problem was that my registry was corrupt. I ran the install disk option for fixing the registry files in the GAC and everything worked great after that.
     
    Sheana, Feb 4, 2005
    #8
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.