Hello,
I have a .Net program that's written in COM. I'm trying to get it to work in AutoCAD 2013 but I get a COM error. I changed my
ThisDrawing.GetObject
to version 19. When I run the following code afterwards
Dim returnObj As AcadObject
ThisDrawing.ActiveDocument.Utility.GetEntity(returnObj, picked_pt, "Select the wellsite's closed polyline...")
I get the following COM error:
Unable to cast COM object of type 'System.__ComObject' to interface type 'Autodesk.AutoCAD.Interop.Common.AcadObject'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{425F38BA-456A-4937-8825-BEA06D12DAA2}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
How can I fix my problem?
Thanks,
cannorth