I have been getting back into lisp, after I had a class that scratched the surface of lisp, I never looked back on it until now. This is my first lisp command written without copying it from a book!
(defun c:ibeamp()
(setq pw (getdist "\nEnter Beam Width: "))
(setq ih (getdist "\nEnter Inner Height: "))
(setq pt (getdist "\nEnter Plate Thickness: "))
(setq po (getdist "\nEnter Overhang Distance: "))
(setq ip (getpoint "\nInsertion point: "))
(setq p2 (polar ip (dtr 180.0) (/ pw 2)))
(setq p3 (polar p2 (dtr 270.0) pt))
(setq p4 (polar p3 (dtr 0.0) po))
(setq p5 (polar p4 (dtr 270.0) ih))
(setq p6 (polar p5 (dtr 180.0) po))
(setq p7 (polar p6 (dtr 270.0) pt))
(setq p8 (polar p7 (dtr 0.0) pw))
(setq p9 (polar p8 (dtr 90.0) pt))
(setq p10 (polar p9 (dtr 180.0) po))
(setq p11 (polar p10 (dtr 90.0) ih))
(setq p12 (polar p11 (dtr 0.0) po))
(setq p13 (polar p12 (dtr 90.0) pt))
(command "line" ip p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 "c"
)
(princ)
)
(defun dtr (x)
(* pi (/ x 180.0))
)
(princ)
this draws a very general I-beam. Any feedback is appreciated, constructive more so