View Single Post
  #1  
Old 11-19-2016, 05:23 AM
kting kting is offline
Registered User
 
Join Date: Nov 2008
Posts: 17
Question Some questions in the code

I programed a add-on application to rotate the part with a specified angle value.Follow attachment is the code file:test.lsp

In the program the part should be rotate 0.9 degree.Actually,the result is that the part is rotated 51.566202degree.
Click image for larger version

Name:	eg1.jpg
Views:	268
Size:	14.1 KB
ID:	1939Click image for larger version

Name:	eg2.jpg
Views:	274
Size:	13.0 KB
ID:	1940Click image for larger version

Name:	drafting.jpg
Views:	277
Size:	18.0 KB
ID:	1942

However,when I change the code ":push-action (sd-call-cmds (g_test))" to ":push-action (g_test)",the result is that the part is rotated 0.9degree.

I can't understand why produce different results by using function sd-call-cmds and no using it in the program.

Could anybody explain it for me?

How to change the program code to keep the dialog when doing a terminate action and rotate the part a specified angle value in the program?
__________________
Best regards,
Kting

Last edited by kting; 11-23-2016 at 10:17 PM.
Reply With Quote