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>
why u r using active-x functions when u can use Visual LISP/ADSRX functions. check the help in AcMapAds.chm Nagesh
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