Message 1 of 5

Not applicable
02-20-2015
10:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I think I might be forgetting to reset something.
I have created the following program to illustrate my issue:
(defun C:myTestProg() (setq flatLength 3) (setq arcHeight 5) (setq flatLeft (list (* -1 (/ flatLength 2)) 0)) (setq flatRight (list (/ flatLength 2) 0)) (setq arcTop (list 0 arcHeight)) (command "line" flatLeft flatRight "") (command "arc" flatRight arcTop flatLeft) (princ) )
If I run this in the commandline of autocad 2012 I get a line from (-1.5,0) to (1.5,0) and an arc between these points and through (0,5).
However, if I immediately repeat the program I get the same line, but an arc between those two points and through (0,2.4).
Repeating a third time or more gives the same line and arc through (0,2.4).
Am I not terminating the arc command correctly? I get an error if I add "" to the end.
Thanks
-Eric
Solved! Go to Solution.