Unable access AutoCAD drawing file content - acdbmgd.dll

patelvp8921
Observer
Observer

Unable access AutoCAD drawing file content - acdbmgd.dll

patelvp8921
Observer
Observer

Trying to access AutoCAD drawing file content using following runtime initialization.

Autodesk.AutoCAD.RuntimeSystem.Initialize(HostApplicationServices,1033).

It is not throwing any error but the HostApplicationServices object is not initialized.

Application Type - VB.NET WinForm - 4.8 Framework.

Tried with acdbmgd.dll from AutoCAD 2024 installation as well as Object ARX SDK.

 

 

0 Likes
Reply
403 Views
5 Replies
Replies (5)

ed57gmc
Mentor
Mentor

You cannot use the managed .NET api from a standalone exe. You can only use the COM api. Use the GetObject method to access the application. See this thread.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes

patelvp8921
Observer
Observer

The same application was working with AutoCAD 2020 when tested last time. Just updated references to 2024 and it is not working now.

0 Likes

ActivistInvestor
Advisor
Advisor

@patelvp8921 wrote:

The same application was working with AutoCAD 2020 when tested last time. Just updated references to 2024 and it is not working now.


If this a managed extension DLL that you're loading into AutoCAD, or a standalone RealDwg host application executable?

 

 

 

 

0 Likes

patelvp8921
Observer
Observer

It is a standalone executable.

0 Likes

ActivistInvestor
Advisor
Advisor

Are you using the RealDWG SDK, or are you just trying to load AcDbxx.dll into a standalone executable?

0 Likes