gpd Posted May 19, 2011 Posted May 19, 2011 Hi all I got a new system on which windows 7 premium 32 bit is installed. I installed AutoCAD 2010 on it. When I run my lisp code its gives following error "no function definition: vlax-ename->vla-object". Same code runs successfully on a system having windows xp with AutoCAD 2007. Please tell how to solve this problem. Quote
gpd Posted May 19, 2011 Author Posted May 19, 2011 Thanks for reply. I have written (vl-load-com) to acad2010doc.lsp file but still getting same error message. If I call (vl-load-com) from command line I get error "COM exception, library not registered". Is it someting because of windows 7. Any hints? Quote
Lee Mac Posted May 19, 2011 Posted May 19, 2011 I have written (vl-load-com) to acad2010doc.lsp file but still getting same error message. Don't alter the ACAD####DOC.lsp, I didn't tell you to alter that file. Add the code to the ACADDOC.lsp - if you don't have an ACADDOC.lsp in your support path, create one (maybe using notepad) and add it to your support path. If I call (vl-load-com) from command line I get error "COM exception, library not registered". Is it someting because of windows 7. This would indicate that the Visual LISP module hasn't been properly installed - I would think you could register it manually (maybe using RegSvr32.exe), but at that point I'm a little out of my depth. Quote
alanjt Posted May 19, 2011 Posted May 19, 2011 You could also run a repair on your installation. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.