Sharpdevelop and MgdDbg samples

Discussion in 'AutoCAD' started by Tim Riley, Sep 20, 2004.

  1. Tim Riley

    Tim Riley Guest

    Hi:

    I am getting the following error when trying to run the snoop sample from
    MgdDbg in Sharpdevelop.

    ****************************************************************************
    ********************
    Performing main compilation...


    fatal error CS0009: Metadata file 'c:\Program Files\Common Files\Autodesk
    Shared\acax16enu.tlb' could not be opened -- 'There isn't metadata in the
    memory or stream'

    Build complete -- 1 errors, 0 warnings
    ****************************************************************************
    ********************

    The AutoCAD 2005 help file tells me that I have to reference "acax16enu.tlb"
    and "axdb16enu.tlb", do I reference these as dotnet assemblies or COM
    interop?

    ~Tim Riley

    Note: I don't know what the heck I'm doing.
     
    Tim Riley, Sep 20, 2004
    #1
    1. Advertising

  2. Tim Riley wrote:

    > fatal error CS0009: Metadata file 'c:\Program Files\Common Files\Autodesk
    > Shared\acax16enu.tlb' could not be opened -- 'There isn't metadata in the
    > memory or stream'


    Those type libraries are not .NET assemblies.

    If referencing the TLB files does not automatically result in a
    reference to Autodesk.AutoCAD.Interop. dll and
    Autodesk.AutoCAD.Interop.Common.dll, remove the references.

    Next, open the References dialog and browse using the GAC tab. You
    should see the above named assemblies in that list. Those are the proper
    references.

    --
    There are 10 kinds of people: those who understand binary and those who
    don't.
     
    Frank Oquendo, Sep 20, 2004
    #2
    1. Advertising

  3. Tim Riley

    Tim Riley Guest

    Thanks Frank, however I removed the reference to the tlb's and just
    referenced the Autodesk.AutoCAD.Interop.dll and
    Autodesk.AutoCAD.Interop.Common.dll directly and I get 91 errors in my
    build. All say I'm missing a namespace called 'RxClass'.

    ****************************************************************************
    *******************
    c:\Documents and Settings\TJRiley\My Documents\SharpDevelop
    Projects\snoop\SnoopClassesCompForm.cs(219,16): error CS0246: The type or
    namespace name 'RXClass' could not be found (are you missing a using
    directive or an assembly reference?)

    Build complete -- 91 errors, 0 warnings

    ****************************************************************************
    *******************

    I'm new to C# as well as .net and I'm just trying to look at some samples to
    get an idea of what's going on. Any help is greatly appreciated.

    ~Tim Riley

    "Frank Oquendo" <> wrote in message
    news:414f2219$1_3@newsprd01...
    > Tim Riley wrote:
    >
    > > fatal error CS0009: Metadata file 'c:\Program Files\Common

    Files\Autodesk
    > > Shared\acax16enu.tlb' could not be opened -- 'There isn't metadata in

    the
    > > memory or stream'

    >
    > Those type libraries are not .NET assemblies.
    >
    > If referencing the TLB files does not automatically result in a
    > reference to Autodesk.AutoCAD.Interop. dll and
    > Autodesk.AutoCAD.Interop.Common.dll, remove the references.
    >
    > Next, open the References dialog and browse using the GAC tab. You
    > should see the above named assemblies in that list. Those are the proper
    > references.
    >
    > --
    > There are 10 kinds of people: those who understand binary and those who
    > don't.
     
    Tim Riley, Sep 20, 2004
    #3
  4. Tim Riley wrote:

    > Thanks Frank, however I removed the reference to the tlb's and just
    > referenced the Autodesk.AutoCAD.Interop.dll and
    > Autodesk.AutoCAD.Interop.Common.dll directly and I get 91 errors in my
    > build. All say I'm missing a namespace called 'RxClass'.


    Be sure to reference acmgd.dll and acdbmgd.dll. These are the managed
    wrappers so you can browse for them with the .NET tab.

    You'll find them in your AutoCAD 2005-based product's installation folder.

    --
    There are 10 kinds of people: those who understand binary and those who
    don't.
     
    Frank Oquendo, Sep 20, 2004
    #4
  5. Tim Riley

    Ed Jobe Guest

    You got this down pat, now, eh Frank. :) Can't wait till I cross that
    bridge. I just recently got vb.net at home. I havn't got them to give it to
    me at work yet.

    --
    ----
    Ed
    ----
    "Frank Oquendo" <> wrote in message
    news:414f2580$1_2@newsprd01...
    > Tim Riley wrote:
    >
    > > Thanks Frank, however I removed the reference to the tlb's and just
    > > referenced the Autodesk.AutoCAD.Interop.dll and
    > > Autodesk.AutoCAD.Interop.Common.dll directly and I get 91 errors in my
    > > build. All say I'm missing a namespace called 'RxClass'.

    >
    > Be sure to reference acmgd.dll and acdbmgd.dll. These are the managed
    > wrappers so you can browse for them with the .NET tab.
    >
    > You'll find them in your AutoCAD 2005-based product's installation folder.
    >
    > --
    > There are 10 kinds of people: those who understand binary and those who
    > don't.
     
    Ed Jobe, Sep 20, 2004
    #5
  6. Won't work unless there has been a recent build put out by SharpDev. For
    some reason the managed wrappers can't be loaded into a SharpDev session.
    There was a thread regarding this in either the ObjectARX group or the C#
    group over at CADVault.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Sep 20, 2004
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vitalie
    Replies:
    1
    Views:
    137
    Andrew Beckett
    Jun 29, 2010
  2. Philippe Guglielmetti

    "horizontal modeling" (TM) samples ?

    Philippe Guglielmetti, Jan 28, 2004, in forum: SolidWorks
    Replies:
    1
    Views:
    66
    Eddy Hicks
    Jan 28, 2004
  3. Sloe

    block samples

    Sloe, Jun 5, 2006, in forum: AutoCAD
    Replies:
    0
    Views:
    126
  4. Mateen

    VB6 Samples.....

    Mateen, Feb 22, 2004, in forum: AutoCAD
    Replies:
    3
    Views:
    123
    john m
    Feb 24, 2004
  5. Jimmy Bergmark

    SharpDevelop experience?

    Jimmy Bergmark, Jul 31, 2004, in forum: AutoCAD
    Replies:
    5
    Views:
    301
    Mike Tuersley
    Aug 5, 2004
Loading...

Share This Page