Visual LISP, AutoLISP and General Customization

Reply
Contributor
m.pepin
Posts: 23
Registered: ‎07-09-2010
Message 1 of 4 (184 Views)

Loading a lisp file in vlisp editor

184 Views, 3 Replies
09-04-2012 11:32 AM

Does someone has a clue, when I load a file in the vlisp editor this is what I get in the console window:

_$
; error: bad argument type: numberp: nil

Please help

 

*Expert Elite*
Posts: 2,391
Registered: ‎12-17-2004
Message 2 of 4 (173 Views)

Re: Loading a lisp file in vlisp editor

09-04-2012 01:19 PM in reply to: m.pepin

Try this:

in vlisp editor, menu debug and break on error,

then load your code,

go to menu debug and last break source, to see what is causing the error.

 

Henrique

*Expert Elite*
dgorsman
Posts: 4,719
Registered: ‎10-12-2006
Message 3 of 4 (163 Views)

Re: Loading a lisp file in vlisp editor

09-04-2012 04:11 PM in reply to: m.pepin

Incidental to the problem, this means something is executing by loading the file.  If this is not intended behavior, then you likely have mismatched parenthesis in the code.  If it is intended behavior, I recommend you disable the execute-on-load behavior during development - it will make debugging easier.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Contributor
m.pepin
Posts: 23
Registered: ‎07-09-2010
Message 4 of 4 (146 Views)

Re: Loading a lisp file in vlisp editor

09-05-2012 05:14 AM in reply to: m.pepin

Thank you, indeed it was mismatch parenthesis. I was puzzled because when I mismatch parenthesis I got another error message than numberp nil. thank you again.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community