Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error: bad rgument type: numberp:nil

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
535 Views, 4 Replies

error: bad rgument type: numberp:nil

Can someone offer some help on this? I know it's probably something simple but, I am not getting anywhere with it.  I have attached the .lsp file

4 REPLIES 4
Message 2 of 5
Kent1Cooper
in reply to: Anonymous

That's a powerful lot to look through....  But this jumped out at me:

 

(SETQ OP1 '(000))

 

which should be:

 

(SETQ OP1 '(0 0 0))

 

with  s p a c e s  between the zeros.  When it's looking for the Y and Z coordinates of the origin to set SPY and SPZ, the variable contains no second or third items, so those will be nil, which would cause just that kind of error message, probably where it tries to set P1 which involves an addition with SPY.

Kent Cooper, AIA
Message 3 of 5
Anonymous
in reply to: Kent1Cooper

Kent, I just tried your fix. Unfortunately it didn't fix the problem. But, at least we know where the problem lies now. Any more help would be greatly appreciated.
Thank You,
John
Message 4 of 5
Satoews
in reply to: Anonymous

This is way over my head but i wanted to take a crack at it. Using the debuging tool in 'vlide command i was able to find some basic writing errors in the code. This dose work all the way through now but seem to have some bugs to be worked out still. I made some notes as well where i made some changes. Let me know if this made it better or worse =P very cool .lsp by the way, one input and off it went.

Shawn T
Message 5 of 5
Anonymous
in reply to: Satoews

Well, Whatever you did to it, It now works on my machine. Now I'll be able to finish it tomorrow. Thank You so much. Sometimes it just takes more eyes on the project.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report