
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a plugin I've written that works fine in AutoCAD Civil 3D 2011. But when I try to run the same plugin in AutOCAD Civil 3D 2012, I get an exception when using the AcMapMap.GetCurrentMap() function.
Here is the unhelpful stack trace:
OSGeo.MapGuide.MgUnclassifiedException: Failed to retrieve message for "MgUnclassifiedException".
at OSGeo.MapGuide.MapApiPINVOKE.SWIGExceptionHelper.ThrowCustomException(String className, IntPtr cptr)
at OSGeo.MapGuide.MapApiPINVOKE.AcMapMap_GetCurrentMapInternal()
at Autodesk.Gis.Map.Platform.AcMapMap.GetCurrentMap()
Does anyone know why this function will not work? I have tried building a separate project which references the 2012 OSGeo DLLs, and I still get the same exception.
Thanks,
-andy
Solved! Go to Solution.