AutoCAD Map 2002 error

Rakesh Rao

Usenet Archive
Joined
Jan 9, 2000
Messages
134
Reaction score
0
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
 
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
 

Latest threads

Back
Top