<?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: Using ManagedMapApi.dll in Windows Forms Applications? in AutoCAD Map 3D Developer Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541882#M2596</link>
    <description>I agree with Norman, why reinvent the wheel.&lt;BR /&gt;
http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112&amp;amp;id=2865624&amp;amp;linkID=9240857&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Murph&lt;BR /&gt;
www.map3d.wordpress.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"norman.yuan" wrote in message news:6239738@discussion.autodesk.com...&lt;BR /&gt;
Why you need to inventing some API? to get XData to Object Data, the &lt;BR /&gt;
existing COM API and ObjectARX Map API (C++ or .NET) are certainly enough to &lt;BR /&gt;
do your work.&lt;BR /&gt;
&lt;BR /&gt;
My previous reply just pointed out that if you do it from external EXE app, &lt;BR /&gt;
you can only use COM API, not the Map .NET API (well, strictly speaking, you &lt;BR /&gt;
can expose .NET API code as COM, but this is a more complicated topic).&lt;BR /&gt;
&lt;BR /&gt;
I am not fan of automating Acad(Map) from external application. If you have &lt;BR /&gt;
to search a lots of entities in drawings and retrieve Xdata, then attach &lt;BR /&gt;
Object Data to each of those entity, doing this process from outside AutoCAD &lt;BR /&gt;
will be very slow. Well, if you have to do it in external app via COM API, &lt;BR /&gt;
I'd suggest you first do it with VBA (set reference to AmVbApi.dll), and &lt;BR /&gt;
then port it to external app.&lt;BR /&gt;
&lt;BR /&gt;
But, if I were you, I'd either do it with pure VBA, or Map .NET API, &lt;BR /&gt;
completely inside AutoCAD Map/Civil 3D.</description>
    <pubDate>Wed, 19 Aug 2009 17:54:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-08-19T17:54:08Z</dc:date>
    <item>
      <title>Using ManagedMapApi.dll in Windows Forms Applications?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541878#M2592</link>
      <description>Hi everybody,&lt;BR /&gt;
&lt;BR /&gt;
I´ve got one question concerning the managedmapapi.dll file from Civil3D 2010:&lt;BR /&gt;
&lt;BR /&gt;
I want to create a small application for copying XData information to ObjectData tables. Therefore, I have to use the managedmapapi.dll file found in the install directory of Civil3D.&lt;BR /&gt;
The problem is, that whenever I try to access any member of that dll, I get the following error message in Visual Studio:&lt;BR /&gt;
File or Assembly "ManagedMapApi, Version=13.0.34.0, Culture=neutral, PublicKeyToken=null" or a dependency can not be found.&lt;BR /&gt;
&lt;BR /&gt;
I know there´s a sample code in the ObjectARX SDK, but it creates a dll file - I want to create a windows forms application using the dll.&lt;BR /&gt;
&lt;BR /&gt;
Is there any help you could give me?&lt;BR /&gt;
&lt;BR /&gt;
Best regards so far,&lt;BR /&gt;
Wolfgang</description>
      <pubDate>Tue, 18 Aug 2009 14:47:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541878#M2592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-18T14:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using ManagedMapApi.dll in Windows Forms Applications?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541879#M2593</link>
      <description>ObjectARX/Map ObjectARX and their .NET API conterparts can only be used inside AutoCAD. That is, you cannot use ManagerMapAPI.dll in a stand-alone Win form application.&lt;BR /&gt;
&lt;BR /&gt;
So, if you have to develop a external exe app, you will automate AcadMap/Civil 3d via Acad COM API and Map's COM API (AMVBAPI.dll/tlb). Note, MAP COM API has not been updated since AcadMap2005 (and may be never updated any more), its power is kind of limited, comparing to Map ObjectARX .NET API.</description>
      <pubDate>Tue, 18 Aug 2009 17:07:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541879#M2593</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2009-08-18T17:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using ManagedMapApi.dll in Windows Forms Applications?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541880#M2594</link>
      <description>Well,&lt;BR /&gt;
&lt;BR /&gt;
thanks a lot for your reply, this will definitely help me!&lt;BR /&gt;
&lt;BR /&gt;
Is there any other way of inventing an interface to copy XData information (being attached to drawing objects) to ObjectData-Tables?&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
Wolfgang</description>
      <pubDate>Wed, 19 Aug 2009 07:29:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541880#M2594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-19T07:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using ManagedMapApi.dll in Windows Forms Applications?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541881#M2595</link>
      <description>Why you need to inventing some API? to get XData to Object Data, the existing COM API and ObjectARX Map API (C++ or .NET) are certainly enough to do your work. &lt;BR /&gt;
&lt;BR /&gt;
My previous reply just pointed out that if you do it from external EXE app, you can only use COM API, not the Map .NET API (well, strictly speaking, you can expose .NET API code as COM, but this is a more complicated topic).&lt;BR /&gt;
&lt;BR /&gt;
I am not fan of automating Acad(Map) from external application. If you have to search a lots of entities in drawings and retrieve Xdata, then attach Object Data to each of those entity, doing this process from outside AutoCAD will be very slow. Well, if you have to do it in external app via COM API, I'd suggest you first do it with VBA (set reference to AmVbApi.dll), and then port it to external app.&lt;BR /&gt;
&lt;BR /&gt;
But, if I were you, I'd either do it with pure VBA, or Map .NET API, completely inside AutoCAD Map/Civil 3D.</description>
      <pubDate>Wed, 19 Aug 2009 15:47:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541881#M2595</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2009-08-19T15:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using ManagedMapApi.dll in Windows Forms Applications?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541882#M2596</link>
      <description>I agree with Norman, why reinvent the wheel.&lt;BR /&gt;
http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112&amp;amp;id=2865624&amp;amp;linkID=9240857&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Murph&lt;BR /&gt;
www.map3d.wordpress.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"norman.yuan" wrote in message news:6239738@discussion.autodesk.com...&lt;BR /&gt;
Why you need to inventing some API? to get XData to Object Data, the &lt;BR /&gt;
existing COM API and ObjectARX Map API (C++ or .NET) are certainly enough to &lt;BR /&gt;
do your work.&lt;BR /&gt;
&lt;BR /&gt;
My previous reply just pointed out that if you do it from external EXE app, &lt;BR /&gt;
you can only use COM API, not the Map .NET API (well, strictly speaking, you &lt;BR /&gt;
can expose .NET API code as COM, but this is a more complicated topic).&lt;BR /&gt;
&lt;BR /&gt;
I am not fan of automating Acad(Map) from external application. If you have &lt;BR /&gt;
to search a lots of entities in drawings and retrieve Xdata, then attach &lt;BR /&gt;
Object Data to each of those entity, doing this process from outside AutoCAD &lt;BR /&gt;
will be very slow. Well, if you have to do it in external app via COM API, &lt;BR /&gt;
I'd suggest you first do it with VBA (set reference to AmVbApi.dll), and &lt;BR /&gt;
then port it to external app.&lt;BR /&gt;
&lt;BR /&gt;
But, if I were you, I'd either do it with pure VBA, or Map .NET API, &lt;BR /&gt;
completely inside AutoCAD Map/Civil 3D.</description>
      <pubDate>Wed, 19 Aug 2009 17:54:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541882#M2596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-19T17:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using ManagedMapApi.dll in Windows Forms Applications?</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541883#M2597</link>
      <description>Thanks again for your replies,&lt;BR /&gt;
&lt;BR /&gt;
maybe I should´ve defined the goal I want to reach:&lt;BR /&gt;
The tool that I need will only be used once to copy (quite a lot) of xdata to ObjectData - that´s it. So basically I don´t have to concern about speed issues etc.&lt;BR /&gt;
So that means, I could use the .dlls within VBA? Also the ManagedMapApi.dll, which is needed for the ObjectData operations? I´ll check that out today, together with the .lsp file, which was posted above...&lt;BR /&gt;
&lt;BR /&gt;
EDIT: ManagedMapApi.dll can´t be loaded into VBA, but the AmVbApi.dll gives access to the ObjectData tables and its records - THANK YOU!&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
Wolfgang

Edited by: jordy78 on Aug 20, 2009 8:55 AM</description>
      <pubDate>Thu, 20 Aug 2009 06:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/using-managedmapapi-dll-in-windows-forms-applications/m-p/2541883#M2597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-20T06:27:49Z</dc:date>
    </item>
  </channel>
</rss>

