<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AcMapMap.GetCurrentMap() failing in AutoCAD 2012 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/acmapmap-getcurrentmap-failing-in-autocad-2012/m-p/3134600#M59590</link>
    <description>&lt;P&gt;Hi Andy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest you repost this question on Civil 3D forum with a small code sample. As you can see, this is a 'unclassified' exception, which usually can have some different reasons...such as not closed resources.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Augusto Goncalves&lt;/P&gt;
&lt;P&gt;Autodesk Developer Network&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2011 15:01:29 GMT</pubDate>
    <dc:creator>augusto.goncalves</dc:creator>
    <dc:date>2011-08-24T15:01:29Z</dc:date>
    <item>
      <title>AcMapMap.GetCurrentMap() failing in AutoCAD 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/acmapmap-getcurrentmap-failing-in-autocad-2012/m-p/3133718#M59589</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the unhelpful stack trace:&lt;/P&gt;&lt;P&gt;OSGeo.MapGuide.MgUnclassifiedException: Failed to retrieve message for "MgUnclassifiedException".&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at OSGeo.MapGuide.MapApiPINVOKE.SWIGExceptionHelper.ThrowCustomException(String className, IntPtr cptr)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at OSGeo.MapGuide.MapApiPINVOKE.AcMapMap_GetCurrentMapInternal()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.Gis.Map.Platform.AcMapMap.GetCurrentMap()﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-andy&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 21:27:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acmapmap-getcurrentmap-failing-in-autocad-2012/m-p/3133718#M59589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-23T21:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: AcMapMap.GetCurrentMap() failing in AutoCAD 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/acmapmap-getcurrentmap-failing-in-autocad-2012/m-p/3134600#M59590</link>
      <description>&lt;P&gt;Hi Andy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest you repost this question on Civil 3D forum with a small code sample. As you can see, this is a 'unclassified' exception, which usually can have some different reasons...such as not closed resources.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Augusto Goncalves&lt;/P&gt;
&lt;P&gt;Autodesk Developer Network&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:01:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acmapmap-getcurrentmap-failing-in-autocad-2012/m-p/3134600#M59590</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2011-08-24T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: AcMapMap.GetCurrentMap() failing in AutoCAD 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/acmapmap-getcurrentmap-failing-in-autocad-2012/m-p/3135350#M59591</link>
      <description>&lt;P&gt;I figured out that some kind of initialization needs to take place before calling GetCurrentMap(). The initialization happens when showing the Task Pane with "mapwspace on ", or with "__MAPSTARTWSPACE﻿". I've added code to run that command when AutoCAD starts and everything is working now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 23:23:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acmapmap-getcurrentmap-failing-in-autocad-2012/m-p/3135350#M59591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-24T23:23:59Z</dc:date>
    </item>
  </channel>
</rss>

