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 -- AutoCAD customization for Engineering/Mapping/GIS Get GeoTools @ http://www.4d-technologies.com/geotools Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm FREE downloads : http://www.4d-technologies.com/techcenter </PRE>
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 -- AutoCAD customization for Engineering/Mapping/GIS Get GeoTools @ http://www.4d-technologies.com/geotools Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm FREE downloads : http://www.4d-technologies.com/techcenter </PRE>
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 -- AutoCAD customization for Engineering/Mapping/GIS Get GeoTools @ http://www.4d-technologies.com/geotools Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm FREE downloads : http://www.4d-technologies.com/techcenter </PRE>