How to get Map application using VLisp

Discussion in 'AutoCAD' started by Rakesh Rao, Jan 24, 2004.

  1. Rakesh Rao

    Rakesh Rao Guest

    Rakesh Rao, Jan 24, 2004
    #1
  2. Rakesh Rao

    Rakesh Rao Guest

    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>
     
    Rakesh Rao, Jan 24, 2004
    #2
  3. Rakesh Rao

    James Murphy Guest

    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
     
    James Murphy, Jan 24, 2004
    #3
  4. Rakesh Rao

    Rakesh Rao Guest

    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>
     
    Rakesh Rao, Jan 24, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.