@nathanwheeler27 You should ask Lee Mac to add that option to his code.
There is option to answer third point input using relative coordinate (@) but it don't work for me.
Code to draw rectangle of certain width (that without using grreed and dinamic draw) is simple
(defun c:wrec nil (wrec))
(defun wrec (/ p1 p2 ang width p3 p4)
(setq p1 (getpoint "\nFirst point >"))
(setq p2 (getpoint "\nSecond point >"))
(setq ang (- (angle p2 p1) (* pi 0.5)))
(setq width (getreal "\nRectangle width >"))
(setq p3 (polar p2 ang width))
(setq p4 (polar p1 ang width))
(command "pline" p1 p2 p3 p4 "C")
(princ)
)
Third point is created in counterclockwise direction to line from first to second point with desired width entered. So if width value is positive rectangle is drawn in that direction, if negative in opposite direction. Positive value draws upwards, negative downwards,
Miljenko Hatlak

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.