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

Unable access AutoCAD drawing file content - acdbmgd.dll

5 REPLIES 5
Reply
Message 1 of 6
patelvp8921
342 Views, 5 Replies

Unable access AutoCAD drawing file content - acdbmgd.dll

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.

 

 

5 REPLIES 5
Message 2 of 6
Ed.Jobe
in reply to: patelvp8921

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

Message 3 of 6
patelvp8921
in reply to: Ed.Jobe

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

Message 4 of 6


@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?

 

 

 

 

Message 5 of 6

It is a standalone executable.

Message 6 of 6

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

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report