Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
One of my .net plugins reads and writes data to an aleady open active Excel workbook.
To get the Excel sheet I'm using
Dim appXL As Excel.Application
Dim wbXL As Excel.Workbook
Dim shXL As Excel.Worksheet
appXL = GetObject(, "Excel.Application")
wbXL = appXL.ActiveWorkbook
shXL = appXL.ActiveSheet
This has been working perfectly in AutoCad 2022 and 2023.
In AutoCAD 2025 GetObject(, "Excel.Application") doesn't deliver the application objetct anymore ...
Up to now I rcognized that this might be related to AutoCad 2025 using .net 8.
I have tried
- GetObject("", "Excel.Application")
- Marshal.GetActiveObject("Excel.Application")
- DirectCast(Marshal.GetActiveObject("Excel.Application"), Excel.Application)
But to no avail ... all three are working in AutoCad 2023 but not in 2025.
Do you have any ideas for approaches on this?
Best regards
Thomas
Solved! Go to Solution.