debugging with VLISP editor. Thanks

debugging with VLISP editor. Thanks

Anonymous
Not applicable
686 Views
7 Replies
Message 1 of 8

debugging with VLISP editor. Thanks

Anonymous
Not applicable

Hi, guys!

 

I have an issue regarding debugging with VLISP editor

 

 

I use the following tutorial

 

 

http://www.lee-mac.com/debugvlide.html#where.

 

I copy-paste text into editor

I run it and I supposed to receive the message 

; error: bad argument type: lentityp nil

But I get the the result of the function: nil

 

 

All ideas are appreciated.

 

Thanks

 

 

 

0 Likes
Accepted solutions (1)
687 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable

@ВeekeeCZ, thanks for reply.

 

Please explain what do you mean?

My function

is

 

 

 

(defun C:MyX ( / n)


	(setq n 3)
  (princ n)
	;(setq MyLength fret  )
 
  )

 

 

This is what I get in VLIST Console

 

; 2 forms loaded from #<editor "C:/Users/psuzd_000/Documents/AutoLisp/fret formula.LSP">
_$ MYX
nil
_$

 

 

Thanks!

0 Likes
Message 3 of 8

Anonymous
Not applicable

But if I enter command in console

(set q 10)

(Princ q)

 

It works fine

0 Likes
Message 4 of 8

ВeekeeCZ
Consultant
Consultant

I see your point now 🙂

 

I never use the console, I always test my program from the command line. So I don't have this experience. But as I can see in help, there are some differences.

 

But anyway... Lee's totorial interacts with autocad enviroment (you need select lines), so load it a run it from Autocad.In this case Lee's code fails as expected 🙂

Message 5 of 8

Anonymous
Not applicable

Yes, I do the same, I test code from the autocad command line.

 

But I hopped to ease the process.

 

Hope, someone else can help.

 

Anyway, thanks!

0 Likes
Message 6 of 8

hmsilva
Mentor
Mentor
Accepted solution

@Anonymous wrote:

Yes, I do the same, I test code from the autocad command line.

 

But I hopped to ease the process.

 

Hope, someone else can help.

 

Anyway, thanks!


Hi s.shivaprem,

you'll have to call the function in VLISP editor...

Try to call:

(c:myx)

Hope this helps,
Henrique

 

EESignature

Message 7 of 8

Anonymous
Not applicable

Yes, it works!
Yes, it helps!

Thanks!

0 Likes
Message 8 of 8

hmsilva
Mentor
Mentor

@Anonymous wrote:

Yes, it works!
Yes, it helps!

Thanks!


You're welcome, s.shivaprem 
Glad I could help

Henrique

EESignature