
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
After a VERY long break from AutoLISP programming, I find myself pulled back in.
I've written a program to enhance the revcloud command based on how our users would like the command to work.
Anyway, it's almost perfect except for my error catching routine which, as you know, returns the user's settings back to the way they like them and exits gracefully if something goes wrong.
I've created a while loop in the middle of the pline command and the user can continue to pick points until they hit Enter which dumps them out and completes the pline command.
I've been testing the possibility of the user hitting ESC during this point picking exersices and it seems that my error catching routine is not being called.
The strange thing is it works beautifully the first time the LISP rountine is used. The next time it's used, is when the error flys by my error catching routine.
I've noticed that the error message is: ; error: Function cancelled and this seems to get ignored by *error* which has been redefined by my get_error routine.
The fact that it works the first time leads me to believe that a system variable or something is getting changed after my enhanced revcloud routine is run for the first time.
I've noticed that there are some new error functions but the explanations of these and how they are used are a little vague. I tried using vl-catch-all-apply but that didn't seem to get me anywhere.
So, I guess my question is how do I catch ; error: Function cancelled or any and ALL errors that might get thrown in my AutoLISP routine?
We are running AutoCAD Architecture 2014 and will be upgrading to 2016 in the next few months.
I would greatly appreciate any and all help anyone could give me.
Thank you,
Matt
Solved! Go to Solution.