I was wondering if someone could help me with a lisp to draw a spline and get the coordinates of the first two points of the spline. I need them to insert a block in the first point of the spline and to define the angle between the points.
I started with the lisp below but I can't make it work properly, the command prompts are different from the prompts for the standard AutoCAD spline, it promts for and . I have to hit ENTER a few times to exit the program.
I am using AutoCAD 2011.
Thank you.
(defun c: DrawSpline ()
(command "._spline")
(while (> (getvar "cmdactive") 0)
(command pause)
)