CAD Forums


Reply
Thread Tools Display Modes

Sharpdevelop and MgdDbg samples

 
Tim Riley
Guest
Posts: n/a
 
      09-20-2004
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.


 
Reply With Quote
 
 
 
 
Frank Oquendo
Guest
Posts: n/a
 
      09-20-2004
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.
 
Reply With Quote
 
 
 
 
Tim Riley
Guest
Posts: n/a
 
      09-20-2004
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" <(E-Mail Removed)> 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.



 
Reply With Quote
 
Frank Oquendo
Guest
Posts: n/a
 
      09-20-2004
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.
 
Reply With Quote
 
Ed Jobe
Guest
Posts: n/a
 
      09-20-2004
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" <(E-Mail Removed)> 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.



 
Reply With Quote
 
Mike Tuersley
Guest
Posts: n/a
 
      09-20-2004
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...
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenAccess samples compilation (c++) failed (how to?) Vitalie Cadence 1 06-29-2010 08:42 AM
Rendering samples todi@convert2cad.com AutoCAD General 1 09-19-2006 12:23 PM
block samples Sloe AutoCAD 0 06-05-2006 07:35 AM
SharpDevelop experience? Jimmy Bergmark AutoCAD VBA 5 08-05-2004 04:01 AM
VB6 Samples..... Mateen AutoCAD VBA 3 02-24-2004 06:41 PM


All times are GMT. The time now is 09:57 AM.