.NET

Reply
New Member
Posts: 2
Registered: ‎12-27-2005
Message 1 of 4 (100 Views)

Stand Alone application .Net 2006

100 Views, 3 Replies
12-27-2005 07:04 AM
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.
Anonymous(anon)
Posts: 0
Message 2 of 4 (100 Views)

Re: Stand Alone application .Net 2006

12-27-2005 03:04 PM 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
New Member
Posts: 2
Registered: ‎12-27-2005
Message 3 of 4 (100 Views)

Re: Stand Alone application .Net 2006

12-28-2005 12:20 AM 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.
*Fred Chateau
Message 4 of 4 (100 Views)

Re: Stand Alone application .Net 2006

01-12-2006 03:19 PM 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community