Message 1 of 8
GetObject is not working in 2025 Beta Version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I need some help.
I've downloaded Civil 3D Vail (2025 Beta version). I've created a simple .NET 8.0 Plugin for AutoCAD 2025. (ClassLibrary)
Here my code:
<Autodesk.AutoCAD.Runtime.CommandMethod("Testgetobject")>
Public Sub Testgetobject()
Dim acAppComObj As Autodesk.AutoCAD.Interop.AcadApplication
Dim strProgId As String = "AutoCAD.Application.25"
acAppComObj = GetObject(, strProgId)
If acAppComObj Is Nothing Then
MsgBox("acAppComObj is Nothing")
else
MsgBox(acAppComObj.ActiveDocument.Name)
End if
End Sub
acAppComObj is Nothing, GetObject is not working
Can anyone help? Why is it not working?
Thanks.