AutoCAD Land Desktop (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I get the AcadMap application

1 REPLY 1
Reply
Message 1 of 2
Anonymous
361 Views, 1 Reply

How do I get the AcadMap application

I am trying to get the code found in the online documentation pertaining to
declaring and accessing the AutocadMap Application object. I was under the
impression that I needed to declare the ACAD application first, but when I
use

set amobj = acadApp.GetInterfaceObject("AutocadMap.Application")

I get a type mismatch error. I am using LDD2, which I believe have the
AutoCAD Map 2000 Release 4 as the base application. How do I initiate the
application so that I can access the projects and attach drawings?

Thanks,
Mike Killion
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Michael--

I had this same question while using Visual Lisp and I overcame it by first
loading the AECCCOGO.ARX application if it was not already loaded. This forced
LDDT 2 to initialize and I was then able to GetInterfaceObject to the
Aecc.Application. With AutoCAD Map, I would probably do the same but I am not
sure how this would have been done from a VBA program. I would be interested to
see the answers from others.

Regards
Rakesh

Michael Killion wrote:

> I am trying to get the code found in the online documentation pertaining to
> declaring and accessing the AutocadMap Application object. I was under the
> impression that I needed to declare the ACAD application first, but when I
> use
>
> set amobj = acadApp.GetInterfaceObject("AutocadMap.Application")
>
> I get a type mismatch error. I am using LDD2, which I believe have the
> AutoCAD Map 2000 Release 4 as the base application. How do I initiate the
> application so that I can access the projects and attach drawings?
>
> Thanks,
> Mike Killion

--
-----------------------------------------------
Four Dimension Technologies, Singapore

TechCenter URL: http://www.4d-technologies.com/techcenter
Home Page URL : http://www.4d-technologies.com
Member of the Autodesk Developer Network(ADN)
------------------------------------------------

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report