Message 1 of 14
Unable to reference Autodesk.AutoCAD.Interop.Common.dll
Not applicable
02-22-2008
09:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I started a new Windows application C# project in Visual Studio 2005, my intention is to use COM only in this one, not the .NET wrappers. So I added the references like the Autocad 2008 ActiveX and VBA developers guide states:
To fully access AutoCAD automation objects from Microsoft Visual Studio® .NET, create references to the following files:
• The AutoCAD 2008 type library, acax17enu.tlb, located at c:\program files\common files\autodesk shared.
• The AutoCAD/ObjectDBX Common 17.0 type library, axdb17enu.tlb, located at c:\program files\common files\autodesk shared.
After adding the references I have under project references “AXDBLib”, but it has the yellow warning sign over it. The error list has two lines:
Cannot find wrapper assembly for type library "AXDBLib".
The referenced component 'AXDBLib' could not be found.
So what’s the problem and how to fix it? I can get around the reference error using late binding and referencing nothing, but late binding is kind of unnatural with C#.
Using Visual Studio 2005 and Autocad Architecture 2008.
To fully access AutoCAD automation objects from Microsoft Visual Studio® .NET, create references to the following files:
• The AutoCAD 2008 type library, acax17enu.tlb, located at c:\program files\common files\autodesk shared.
• The AutoCAD/ObjectDBX Common 17.0 type library, axdb17enu.tlb, located at c:\program files\common files\autodesk shared.
After adding the references I have under project references “AXDBLib”, but it has the yellow warning sign over it. The error list has two lines:
Cannot find wrapper assembly for type library "AXDBLib".
The referenced component 'AXDBLib' could not be found.
So what’s the problem and how to fix it? I can get around the reference error using late binding and referencing nothing, but late binding is kind of unnatural with C#.
Using Visual Studio 2005 and Autocad Architecture 2008.