How to get Map application using VLisp

Rakesh Rao

Usenet Archive
Joined
Jan 9, 2000
Messages
134
Reaction score
0
How do I get the AutoCAD Map object in 2002?

(setq #AcadMapAppObject (vla-getinterfaceobject (vlax-get-acad-object)
"AcadMap.Application")

The above line gives an error: Problem loading automation application.

Thanks
Rakesh
 
Hi James,

Thank you for your response but it did not work.

In fact, I tried giving all numbers from 1 to 6 following AcadMap.Application.

Is there anything else that needs to be done prior to this statement?

Where is this info (the class name) stored?
Regards
Rakesh

James said:
Try AcadMap.Application1.6 for 2002 ,for R2004 its a "2"

Murph
 
This is what it is for Map2004
GetInterfaceObject("AutoCADMap.Application.2")
I thought for R2002 it was 1.6.
The file that the VBA uses for the references in R2004 is Amvbapi.tlb if that helps you any.

Murph
 
Thanks James,

I figured it out. It is "AutoCADMap.Application" and not "AcadMap.Application".

Such a stupid mistake.

Rakesh

James said:
This is what it is for Map2004
GetInterfaceObject("AutoCADMap.Application.2")
I thought for R2002 it was 1.6.
The file that the VBA uses for the references in R2004 is Amvbapi.tlb if that helps you any.

Murph
 

Latest threads

Back
Top