Two error-messages: one loading a LISP-file, one ending a LISP-file.
LOAD failed: "C:\\Data\\AutoCAD data\\Autolisp\\demo"; error: An error has occurred inside the *error* functionAutoCAD variable setting rejected: "clayer" nil
AutoCAD variable setting rejected: "snapang" nil; error: An error has occurred inside the *error* functionAutoCAD variable setting rejected: "clayer" nil
What's going wrong here?
Didn't find your answer? Ask the community — no account required.
R
roy
well, is it something you wrote, and are therefore familiar with? "clayer" is a system variable, and can't be re-defun-ed in a lisp routine. it can be reset, but not redefined.
sim with snapang
I am lousy with error handlers, I write almost entirely without and only use the routines for ME. beta.
got a code snippet to submit for review? like maybe the offending piece(s)?
M
Michael Bulatovich
I'll bet the routine has calls to SETVAR to a variable, and the variable is not yet defined.
P
Pete
Maybe you should post the code.
D
Ding Dong
Here's the original code. It used to work without a glitch
; Routine voor het tekenen van loodrechte polylines ; geeft na een closed-polyline ; PTC/FKo
It looks to me as if there's something wrong with AutoCAD's LISP-interpreter.
P
Pete
Ditto on the clayer error. And I'm not sure about (setvar "snapang" hoek). Can anyone explain the hoek setting there?
"rod cohen comcast.net>" > > >
D
Ding Dong
About 10 years ago I wrote this routine for easy digitizing maps with various buildings on it. It enables perpendicular angles in any direction and it closes the polyline with a last perpendicular line.
The point is that AutoCAD tells An error has occurred inside the *error* function. How come? Is AutoCAD drunk :? Apparently not, after one day of rest the original file still doesn't work. :( But then again, what is wrong with the *error* handling and how can I get it right (without having to re-install AutoCAD)? I'm now working with 2007, but I recall the fault when working with R14. Especially the AutoCAD variable setting rejected: "clayer" nil. happened in routines where clayer was not used...
"rod cohen comcast.net>" > > >
R
roy
I am on an old version of Autocad. this is just a hunch.
type (terpri) at the command line and see if 07 interprets it correctly. if there is an abondonded piece of code, that looks suspicious to me.
otherwise I would load VLISP and run the code line by line til it fails.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.