<?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: Problem in loading application in AutoCAD Map 3D Developer Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4334772#M2896</link>
    <description>&lt;P&gt;I have no problem with this code with AutoCAD Map 2011 in one computer and AutoCAD Map 2012 in another computer, both are Win7 64-bit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub MapTest()

    Dim app As AutocadMAP.AcadMap
    Dim proj As AutocadMAP.Project

    Set app = Application.GetInterfaceObject("AutoCADMap.Application")
    Set proj = app.Projects(ThisDrawing)

    MsgBox "Projection: " &amp;amp; proj.CurrentProjection

End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Are you sure you have set reference to AcMapVbaApi.tlb?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2013 13:44:22 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2013-07-18T13:44:22Z</dc:date>
    <item>
      <title>Problem in loading application</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/2165598#M2891</link>
      <description>I get the message "Problem in loading application" when I run the following code (copied straight from the help&lt;BR /&gt;
file).&lt;BR /&gt;
It's occurs in AutoCad Map 2008.&lt;BR /&gt;
&lt;BR /&gt;
Public m_Map As AcadMap&lt;BR /&gt;
Public m_MapProject As Project&lt;BR /&gt;
&lt;BR /&gt;
Private Sub Class_Initialize()&lt;BR /&gt;
    Set m_Map = ThisDrawing.Application. _&lt;BR /&gt;
        GetInterfaceObject("AutoCADMap.Application.2")&lt;BR /&gt;
    If m_Map Is Nothing Then&lt;BR /&gt;
        MsgBox "Unable to create AutoCADMap.Application Automation server."&lt;BR /&gt;
        End&lt;BR /&gt;
   End If&lt;BR /&gt;
    &lt;BR /&gt;
    Set m_MapProject = m_Map.Projects(ThisDrawing)&lt;BR /&gt;
    If m_MapProject Is Nothing Then&lt;BR /&gt;
        MsgBox "Unable to get active map project."&lt;BR /&gt;
        End&lt;BR /&gt;
    End If&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Any help?&lt;BR /&gt;
&lt;BR /&gt;
I'm Trying in AutoCad Map 2008&lt;BR /&gt;
&lt;BR /&gt;
-lymajunior</description>
      <pubDate>Mon, 28 Jan 2008 15:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/2165598#M2891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-28T15:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading application</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/2165599#M2892</link>
      <description>Remove the 2 after AutoCADMap.Applicatin. You don't need the ProgID with 2008.</description>
      <pubDate>Wed, 06 Feb 2008 15:32:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/2165599#M2892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-06T15:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading application</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/2165600#M2893</link>
      <description>Hello mapworks,&lt;BR /&gt;
But when I remove the 2 after AutoCADMap.Application, the error that returns now is type mismatch.I'm trying everything but nothing works.Do you know what  I can do?&lt;BR /&gt;
See the attached file with the erros.&lt;BR /&gt;
Thanks&lt;BR /&gt;
lymajunior</description>
      <pubDate>Wed, 06 Feb 2008 16:06:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/2165600#M2893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-06T16:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading application</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/2165601#M2894</link>
      <description>Go into Tools-&amp;gt;References and make sure your Autodesk libraries are all pointing to 2008 especially AmVbApi.tlb which should be in \Program Files\AutoCAD MAP 3D 2008.</description>
      <pubDate>Wed, 06 Feb 2008 16:16:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/2165601#M2894</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-06T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading application</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4333048#M2895</link>
      <description>&lt;P&gt;I get "Problem in Loading Application" with AutoCAD 3D Map 2011 on&lt;/P&gt;&lt;P&gt;AcadMap = acad.GetInterfaceObject("AutoCADMap.Application")&lt;/P&gt;&lt;P&gt;What should i do to fix this?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 14:35:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4333048#M2895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T14:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading application</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4334772#M2896</link>
      <description>&lt;P&gt;I have no problem with this code with AutoCAD Map 2011 in one computer and AutoCAD Map 2012 in another computer, both are Win7 64-bit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub MapTest()

    Dim app As AutocadMAP.AcadMap
    Dim proj As AutocadMAP.Project

    Set app = Application.GetInterfaceObject("AutoCADMap.Application")
    Set proj = app.Projects(ThisDrawing)

    MsgBox "Projection: " &amp;amp; proj.CurrentProjection

End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Are you sure you have set reference to AcMapVbaApi.tlb?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2013 13:44:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4334772#M2896</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2013-07-18T13:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading application</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4334983#M2897</link>
      <description>&lt;P&gt;i'm designing a 64 bit VB.NET for win7 code on a 32 bit machine XP machine.&lt;/P&gt;&lt;P&gt;I did not have the reference to AcMapVbAbi.tlb, should i use this one or AcMapVbAbi.dll?&lt;/P&gt;&lt;P&gt;and mostly i want to get the alliases after&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;acad.GetInterfaceObject("AutocCADMap.Application")&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2013 15:38:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4334983#M2897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-18T15:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading application</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4335153#M2898</link>
      <description>&lt;P&gt;So, you are not doing VBA, then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do understand what does this mean:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;quote&amp;gt;&lt;/P&gt;&lt;P&gt;i'm designing a 64 bit VB.NET for win7 code on a 32 bit machine XP machine.&lt;/P&gt;&lt;P&gt;&amp;lt;/quote&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What type of application you are doing, for which version of AutoCAD? If you are doing AutoCAD .NET API adding, there is not need to use Map's COM API (for pre AutoCAD 2014 version, you cannot use 32-bit COM API in your .NET addin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMO, if you use .NET for programming, you do not need Map's COM API at all.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2013 17:39:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4335153#M2898</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2013-07-18T17:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in loading application</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4335200#M2899</link>
      <description>correct, VBA was said to be going away, so i'm converting VBA code to VB.NET to get it to work with a 64bit machine.&lt;BR /&gt;&lt;BR /&gt;The line of code works now When i added the reference to AcMapVbAbi.tlb in Visual Studio 2010.&lt;BR /&gt;&lt;BR /&gt;AutoCAD 3d map 2011&lt;BR /&gt;&lt;BR /&gt;im not sure which references i do not need ? Map's COM API ?&lt;BR /&gt;&lt;BR /&gt;anyways thanks for your help that seems to work so far at least it pasted that line of code</description>
      <pubDate>Thu, 18 Jul 2013 18:09:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/problem-in-loading-application/m-p/4335200#M2899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-18T18:09:42Z</dc:date>
    </item>
  </channel>
</rss>

