Hello. Here's a spline question that is puzzling me. Using the spline command, when finished, hit enter and the command is over. When I tried using it in a lisp I have to hit enter 3 times...once to end creating the spline and once on each end of the spline.
Back story is a coworker likes to use the spline command for when we draw cables to get his layout. He then uses splinedit, then pedit so he can give it a thickness. So I made an attempt to create this for him to save him some steps. This works, but like I mentioned in the beginning, I'm asked to hit enter on each side of the spline. This happens to me even if my lisp only consisted of (command "spline").
Code:
(setq SC (getvar "DIMSCALE"))
(setq CABTHK (/ 0.05 (/ 1 SC)))
(command ".-LAYER" "m" "CABLES" "c" "82" "CABLES" "lt" "continuous" "CABLES" "")
(command ".spline")
(while (> (getvar 'cmdactive) 0) (command pause))
(command ".splinedit" "L" "P" "")
(command ".pedit" "L" "W" CABTHK "")
(princ)
)
Any thoughts? Thanks,
Paul