You are on page 1of 1

(defun c:Elbow (/ dtr w r p p1 p2 p3)

(defun dtr (A)


(* PI (/ A 180.0))
)
(if (and (setq w (getdist "\n Specify the width :"))
(setq r (getdist "\n Specify the radius of small arc :"))
(setq p (getpoint "\nPick Insertion Point: "))
)
(progn
(setq p1 (Polar p pi w)
p2 (polar (polar p 0. r) (dtr 90.) (+ w r))
p3 (Polar p2 (dtr 270) w)
)
(command "_.line"
"_none"
p
"_none"
p1
""
"_.arc"
"_none"
p2
"_E"
p1
"_a"
90.
"_.line"
"_none"
p2
"_none"
p3
""
"_.arc"
"_none"
p3
"_e"
p
"_a"
90.
)
)
)
(princ)
)

You might also like