I am having trouble getting some functions to work, even if I simply cut and paste the examples in the autoLisp reference. Take for example:
(setq mycircle (vla-addCircle mSpace (vlax-3d-point '(3.0 3.0 0.0)) 2.0)) results in this:
; error: bad argument type: VLA-OBJECT nil
I do set (vla-load-com) first. If I run the vlax-3d-point.... on it's own it returns #<variant 8197 ...> like the documentation says it should. I've tried cut and paste on several variations of this with the same results.
What am I doing wrong? Other VLA objects are working....and I've unloaded all my custom menus and lisps to see if there was some kind of conflict...and I've tried this on several computers here all using ACAD 2004
Any ideas? Thanks
kemp
(setq mycircle (vla-addCircle mSpace (vlax-3d-point '(3.0 3.0 0.0)) 2.0)) results in this:
; error: bad argument type: VLA-OBJECT nil
I do set (vla-load-com) first. If I run the vlax-3d-point.... on it's own it returns #<variant 8197 ...> like the documentation says it should. I've tried cut and paste on several variations of this with the same results.
What am I doing wrong? Other VLA objects are working....and I've unloaded all my custom menus and lisps to see if there was some kind of conflict...and I've tried this on several computers here all using ACAD 2004
Any ideas? Thanks
kemp