AutoLISP Routine Help - Not functioning on all machines

AutoLISP Routine Help - Not functioning on all machines

Anonymous
Not applicable
483 Views
4 Replies
Message 1 of 5

AutoLISP Routine Help - Not functioning on all machines

Anonymous
Not applicable

OK We have a LISP routine that insert blocks (among other things) from a network drive. On some machine it works on other I've got a stringp nil error. The network path is stored in a variable and when I typed !"variablename" at the command line I got a string with the right network path???

When I put a breakpoint on that particular line of code and I do a step by step in the Visual Lisp Editor the routine works???

Does anyone has any ideas please.

Thanks in advance

0 Likes
Accepted solutions (1)
484 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Accepted solution

Hi m.pepin,

 

Are you having single subfunction for block insertion in different lsp files?

If you are having different subfunction with same name, there is the possibility that you are using subfunction from different file.

Probably before you run routine in vlide, it is loaded, and then your subfunction is active again.

 

Try to load your lsp file with app load, and then try it with out visual lisp and breakpoint.

 

Hope it helps,

dicra

Message 3 of 5

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

.... We have a LISP routine that insert blocks (among other things) from a network drive. On some machine it works on other I've got a stringp nil error. The network path is stored in a variable....


If it's not a "file not found" or similar error, I suspect it's not the network drive designation that's at issue.  A stringp nil error could be at the filling in of an Attribute value -- do any of the Blocks have Attributes, and are their values determined from something that might vary from one machine to another?  Also, you don't say what "(among other things)" entails -- could the error be related to whatever those are?

 

Post the code, and someone may be able to see what's causing the problem.

Kent Cooper, AIA
0 Likes
Message 4 of 5

Anonymous
Not applicable

Your tip to load the lisp with appload helped me to solve my problem. I won't detail things here (because it's quite complicated and english is not my language). Thanks a lot.

0 Likes
Message 5 of 5

Anonymous
Not applicable

m.pepin,

 

Your welcome,

I'm glad I was able to help you.

 

Best regards,

dicra

0 Likes