From the thread "stringp nil error" at the next link:
http://discussion.autodesk.com/thread.jspa?messageID=5404144
"Re: stringp nil error
The VLIDE can really help you here.
Open your code in the editor, and load it from within the editor. Then go to
the Debug menu, and make sure the Break On Error option is selected. Now
execute your code, either from AutoCAD's command prompt, or the Visual LISP
Console window.
When the error occurs, the VLIDE should pop up. And you can use the button
that looks like a red dot with parens around it and an arrow pointing into
it (Last break). This will highlight the statement where the error occurs.
You will find on of your variables is set to nil, instead of some value (a
string) your code expects.
While in break mode you can use Inspect to see what variables or even
statements evaluate to. To take the debugging a step further, set a break
point (F9) somewhere above the problem statement and execute the function
again. When the code reaches the break point, the VLIDE will become active
and you can step thru each statement using F8. Inspect what is happening
with your code.
That ought to help you find the source of the issue.
--
R. Robert Bell"
HTH,
Constantin
a écrit dans le message de news:
5407425@discussion.autodesk.com...
using visual lisp editor can i find my error that is causing this message
from autocad: bad argument type: numberp: nil?