.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Stand Alone application .Net 2006

3 REPLIES 3
Reply
Message 1 of 4
ericdev
228 Views, 3 Replies

Stand Alone application .Net 2006

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 (16.2.54.0) (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 (16.1.63.0) and acmgd.dll (16.1.63.0)
And I have the same problem.
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: ericdev

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...

Imports Autodesk.AutoCAD.DatabaseServices
Message 3 of 4
ericdev
in reply to: ericdev

Yes I have imported :
Imports System
Imports System.Runtime.InteropServices
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices

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...

Thank you for your answer.
Message 4 of 4
Anonymous
in reply to: ericdev

wrote ...

> 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:

Microsoft.VisualC 7.0.3300.0
mscorlib
System
System.Drawing
System.Xml

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?

--
Regards,

Fred Chateau
fchateauAtComcastDotNet

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost