AutoCAD Map 2002 error

Discussion in 'AutoCAD' started by Rakesh Rao, Feb 9, 2004.

  1. Rakesh Rao

    Rakesh Rao Guest

    Hello,

    Can someone point out why the below piece of AutoCAD Map ActiveX lisp
    code is giving an error shown below.


    (setq
    cRecords (vlax-invoke-method odTable "GetODRecords")
    retVal (vlax-invoke-method cRecords "Init" oname :vlax-false :vlax-false)
    )

    (if retVal
    (progn
    (setq cRecord (vlax-invoke-method cRecords "Record")) ))


    The above line ("Record" method call) throws up this error shown below:

    error: Automation Error. Description was not provided.

    Any help is appreciated.


    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, Feb 9, 2004
    #1
  2. Rakesh Rao

    nagesh nangi Guest

    why u r using active-x functions when u can use Visual LISP/ADSRX
    functions.
    check the help in AcMapAds.chm
    Nagesh
     
    nagesh nangi, Feb 9, 2004
    #2
  3. Rakesh Rao

    Murph Guest

    Have you tried:
    (setq cRecord (vlax-invoke-method cRecords "ODRecord")) ))
    or
    (setq cRecord (vlax-invoke-method cRecords "0")) )) with 0 being the first
    record in the index.

    Murph
     
    Murph, Feb 9, 2004
    #3
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.