Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

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

Loading a lisp file in vlisp editor

232 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*
hmsilva
Posts: 2,745
Registered: ‎12-17-2004
Message 2 of 4 (221 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: 5,210
Registered: ‎10-12-2006
Message 3 of 4 (211 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.


Active Contributor
m.pepin
Posts: 26
Registered: ‎07-09-2010
Message 4 of 4 (194 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.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.