rodbuilder Posted November 5, 2010 Posted November 5, 2010 Sorry Thread should be named Problem with Lisp My AutoCAD crashed and I had to uninstall and reinstall. Now my lisp routines will no longer work. I have been using the BreakObjects.lsp by Charles Alan Butler for a while and now when I try to use it i get the following error "; error: no function definition: VLAX-ENAME->VLA-OBJECT" It happens to many lisp routines, I just thought everyone may know this one. Can anyone help me with whats going on. All my lisps are useless right now. Quote
Lee Mac Posted November 5, 2010 Posted November 5, 2010 Add (vl-load-com) To your ACADDOC.lsp, or to the top of those LISPs which are returning the error. I have seen cases where the above doesn't cut it, especially for 2011 it seems - also try typing the above manually at the command-line (this solved it for me when I first installed it). Quote
Tharwat Posted November 5, 2010 Posted November 5, 2010 Thanks, but it did not work. Try to post one your routines which is not working so far . Quote
alanjt Posted November 5, 2010 Posted November 5, 2010 Your install may have become corrupt. What happens when you type (vl-load-com)? Quote
rodbuilder Posted November 5, 2010 Author Posted November 5, 2010 I do not have any of my personal routines that do not work because I have not gotten that deep into the programming to use VLA. I do not like posting someone else's work, but here is one that most people know about and its not working for me, http://www.cadstudio.cz/download.asp go 3/4 way down the page and the BreakAll is one of the commands. you can download it and take a look at it. The file is also available at the theswamp.com for download. Quote
rodbuilder Posted November 5, 2010 Author Posted November 5, 2010 alanjt, I went to the AutoCAD window and entered (vl-load-com) at the command line, nothing happened it seemed. I went back to my lisp editor and it was locked like running a command. I had to go back to the command line and enter vlisp to free it up. I think you might be right abut a corruption. Any ideas about how to fix it? Quote
alanjt Posted November 5, 2010 Posted November 5, 2010 Run a repair on the installation. Before you do that, what happens when you execute this and select any object in autocad? (progn (vl-load-com) (vlax-ename->vla-object (car (entsel)))) Quote
rodbuilder Posted November 5, 2010 Author Posted November 5, 2010 I ran it and below is the outcome. Command: (progn (vl-load-com) (vlax-ename->vla-object (car (entsel)))) Select object: ; error: no function definition: VLAX-ENAME->VLA-OBJECT Quote
alanjt Posted November 5, 2010 Posted November 5, 2010 Corrupt installation. Start>Settings>Control Panel>Add/Remove Programs>AutoCAD Mechanical 2010>Repair 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.