Hello, I have a version of RealDWG 2006 (Sériel no: 343-79028130).
I need to create an application without using Autocad : "Stand Alone".
My objective is to load a file.
I to create an empty project in which I reference the DLL :
acdbmgd.dll (184.108.40.206) (get in C:\Program Files\Autodesk RealDWG 2006 folder)
Then, I try to create a local base with the following order :
Dim db As Database
db = New Autodesk.AutoCAD.DatabaseServices.Database(True, True)
At the time of the instantiation I have the following message :
"An exception of fisrt chance of the type 'System.IO.FileNotFoundException' occurred in system.windows.forms.dll
Additional information : File or assembly name acdbmgd, or one of its dependencies, was not found."
Why I have this error?
How can intanciate this Dll without error ?
My configuration of development is :
Visual Studio 2003 C# or VB.NET v 7.1.3088
.NET Framework 1.1 v 1.1.4322 SP1
Windows XP PRO SP2
I also tested by referring Dll :
acdbmgd.dll (220.127.116.11) and acmgd.dll (18.104.22.168)
And I have the same problem.
have you tried importing the Autodesk.AutoCAD.DatabaseServices before defining your class (see below)??? You may also need the interop files (If tere are any for RealDWG)...acax16enu.tlb and axdb16enu.tlb located in c:\Program Files\Common Files\Autodesk Shared...I hope this helps...
Yes I have imported :
If I reffering acdbmghost.dll + Autodesk.Autocad.Interop.dll + Autodesk.Autocad.Interop.Common.dll, I can open a new document in Autocad application (if it's open before).
But I don't using or managing Autocad.
Also, I reffering acax16enu.tlb and axdb16enu.tlb, but nothing more better...
> At the time of the instantiation I have the following message :
> "An exception of fisrt chance of the type
> 'System.IO.FileNotFoundException' occurred in system.windows.forms.dll
> Additional information : File or assembly name acdbmgd, or one of its
> dependencies, was not found."
acdbmgd.dll depends on:
Are they referenced?
Also, I don't know how new you are to .NET but it doesn't matter whether
namespaces are imported. Are all your working assemblies referenced?