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.
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.
The same application was working with AutoCAD 2020 when tested last time. Just updated references to 2024 and it is not working now.
@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?
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.