Unable access AutoCAD drawing file content - acdbmgd.dll

Unable access AutoCAD drawing file content - acdbmgd.dll

patelvp8921
Observer Observer
753 Views
5 Replies
Message 1 of 6

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
754 Views
5 Replies
Replies (5)
Message 2 of 6

Ed__Jobe
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
Message 3 of 6

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
Message 4 of 6

ActivistInvestor
Mentor
Mentor

@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
Message 5 of 6

patelvp8921
Observer
Observer

It is a standalone executable.

0 Likes
Message 6 of 6

ActivistInvestor
Mentor
Mentor

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

0 Likes