Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everybody, Good Day.
I am developing software using Visual Studio 2022 and autocad 2025. The software starts with .Net 8 COM and after autocad opens, it calls .Net 8 DLLs using sendcommand. The issue is, everytime i start the software, i have to create a new Application instead of using existing application.
Try
Acadapp = GetObject(, "Autocad.Application")
Catch ex As Exception
End Try
Try
Acadapp = GetObject(, "AutoCAD.Application.25")
Catch ex As Exception
End Try
Try
Acadapp = GetObject(, "AutoCAD.Application.25.1")
Catch ex1 As Exception
End Try
Try
Acadapp = GetObject(, "AutoCAD.Application.25.0")
Catch ex1 As Exception
End Try
Try
Acadapp = GetObject(, "AutoCAD.Application.25.2")
Catch ex1 As Exception
End Try
Acadapp = CreateObject("AutoCAD.Application")
In the simple code, above, getobject never fetches autocad application. I tried to start without /nologo. Even then it does not work. Please help me.
Solved! Go to Solution.