I've been using this code below to draw site plan, but when ask for distance it only allow you to input inches and not feet, is there anyway someone can help me convert this so that we can input 112.21' instead inches.
thanks,
Code:
;Tip1741: BD.LSP Bearing/Distance lines (c)2001, Joon Hong $50 Bonus Winner
(defun C:BD ()
(setvar "cmdecho" 0)
(initget 1)
(setq PT (getpoint "\nPick a starting point: "))
(initget 1 "NE NW SE SW")
(setq BR (getkword "\nPick bearing (NE/NW/SE/SW): "))
(setq OPT (strcase BR))
(initget 1)
(setq LEN (getreal "\nType the length: "))
(setq DEG (getstring "\nType the degree: ")
minx (getstring "\nType the minute: ")
SEC (getstring "\nType the second: "))
(if (= DEG "")
(setq DEG "0"))
(if (= minx "")
(setq minx "0"))
(if (= SEC "")
(setq SEC "0"))
(cond ((= "SW" OPT)
(setvar "angbase" (cvunit 270 "degree" "radian"))
(setvar "angdir" 1))
((= "SE" OPT)
(setvar "angbase" (cvunit 270 "degree" "radian"))
(setvar "angdir" 0))
((= "NW" OPT)
(setvar "angbase" (cvunit 90 "degree" "radian"))
(setvar "angdir" 0))
((= "NE" OPT)
(setvar "angbase" (cvunit 90 "degree" "radian"))
(setvar "angdir" 1)))
(command "line" PT (strcat "@" (rtos LEN) "<" DEG "d" minx "'" SEC "\"") "")
(setvar "angbase" 0)
(setvar "angdir" 0)
(setvar "cmdecho" 1)
(princ))
(princ "\nType 'BD' to draw lines with bearings")
(princ)