Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LISP code issue in AutoCAD 2013

1 REPLY 1
Reply
Message 1 of 2
bhongnd
457 Views, 1 Reply

LISP code issue in AutoCAD 2013

Hi all,

 

I am new to LISP programming and stuck in 1 problem.
Our software is AutoCAD based and has LISP code for some functionalities.

 

Animation code is in LISP and it is working fine on AutoCAD 2010.
But same LISP code is hanging on AutoCAD 2013, without displaying animation.
Tried to debug the same using VLIDE and debugging each line of animation code.

There found that, it hangs for statements like

 

(command "._point" "0,0")
OR
(command "._LAYER" "_M" lyr_name "_C" lyr_color lyr_name "_L" lyr_ltype lyr_name "_LW" lyr_lweight lyr_name "")

 

I just see the hour glass cursor. Program does not continue with next statement.
However same statements works fine on AutoCAD 2010.

 

Note -: I have created small functions to draw line / circle / point by making calls as follows -:
(command "._point" "11,11")
(command "LINE" "0,0,0" "10,10,0" "")
(command "CIRCLE" "5,5" 5)

 

Those functions are executing without any issue on AutoCAD 2013.

So I think that our LISP code is setting some parameter which is causing this issue. But I am not getting exact cause of this problem.

Please help me to resolve this issue.

 

Thanks and regards
ND.

1 REPLY 1
Message 2 of 2
dbroad
in reply to: bhongnd

You'll probably have to post more than those fragments to get decent help.  Those shouldn't hang anything.  When you say animation, does your code animate objects or are you talking about code execution animation in vlide.  Have you set breakpoints?  Code will stop at those.

 

In general, there were no significant changes that I can think of to 2013 lisp vs 2010 lisp.  Make sure your support files paths are finding any load files.

Architect, Registered NC, VA, SC, & GA.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost