Dinesh Palatty/LISP routine is not working

Dinesh Palatty/LISP routine is not working

d_palatty
Explorer Explorer
400 Views
5 Replies
Message 1 of 6

Dinesh Palatty/LISP routine is not working

d_palatty
Explorer
Explorer

How to check why a LISP routine is not working?

 

 

@d_palatty - moderation team has adjusted title for better clarity.

0 Likes
401 Views
5 Replies
Replies (5)
Message 2 of 6

paullimapa
Mentor
Mentor

Share your code so we can take a look


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 6

Kent1Cooper
Consultant
Consultant

And describe in detail what you mean by "not working."  That by itself is never enough information.

 

But in generic terms, un-connected with a specific routine. any error messages are the first clue.  If there are none, or you don't know to what they refer, look into the VLIDE and its testing procedures.  Or put pieces of the code in one at a time at the Command line, until something doesn't do what you intend.

Kent Cooper, AIA
0 Likes
Message 4 of 6

d_palatty
Explorer
Explorer

I have apploaded a lisp routine but no activity is observed, When I click Visual lisp editor, following error message is shown : Open an AutoLISP source file and click Run>Start Debugging from the menu bar to debug.

0 Likes
Message 5 of 6

Kent1Cooper
Consultant
Consultant

@d_palatty wrote:

I have apploaded a lisp routine but no activity is observed, ....


Some AutoLisp files are written to define a command and run it automatically when the file is loaded.  But that is not always the case -- APPLOADing a routine does not necessarily run it.  You may only need to call the command name.

 

See Message 2.

Kent Cooper, AIA
0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

Like Kent have a look at the code if it has a (defun c:mydefun, when apploaded you need to type "mydefun" to run it. 

 

Or you can add (c:mydefun) as the last line in your lisp program, then it will run when you load it and can be repeated by type mydefun again.

 

Obviously replace "mydefun" with your defun name.

 

If this does not fix it for you, will have to post code, so someone can check it.

0 Likes