- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
After some wonderful help from some great people here on some other routines, my survey department saw what was possible, or at least probable, and have asked for a routine of their own. However, I keep getting a malformed error when I try to load the code.
(defun c:nf ( / ml_txt)
(setq oldlayer (getvar "clayer"))
(setvar "clayer" "0")
(setq lot (getstring T "\nWhat is the Lot number of this parcel?\n(Only the lot number is needed.)"))
(setq add (getstring T "\nWhat is the street address for this parcel?\n(User entry is not case senstive.)"))
(setq owner (getstring T "\nWho is(are) the current owner(s) of this parcel?\n(User entry is not case senstive.)"))
(setq dbp (getstring T "\nWhat is the current deed book and page for this parcel?\n(Example 22560 / 1200)"))
(setq asf (getreal T "\nWhat is the area of this parcel in square feet?"))
(setq pt1 (getpoint))
(setpoint pt1)
(setvar "textstyle" "Anno Plan 0.14")
(command "_.mtext" (polar pt1 (dtr 90) (0.04)) "_J" "BC" "R" "0" "W" "0" (strcat "LOT " lot)" "")
(setvar "textstyle" "Anno Plan 0.08")
(command "_.mtext" (polar pt1 (dtr 270 (0.04)) "_J" "MC" "R" "0" "W" "25" (strcase add) "PROPERTY N/F OF" (strcase owner) dbp "")
(setvar "textstyle" "Anno Plan 0.14")
(command "_.mtext" (polar pt1 (dtr 270) (0.20)) "_J" "TC" "R" "0" "W" "0" (rtos asf 2 0) " SQ.FT. OR" (rtos (/ asf 43560) 2 3) " ACRES" "")
(setvar 'clayer oldlayer)
(setvar "CMDECHO" 1)
)
I'm hoping someone here can tell me what I'm doing wrong or what I just missed. I don't necessarily need one instance of mtext with three different textstyles or sizes, but I do need at least three different mtexts with the information my surveyors are looking for.
Additionally, is there a way to allow a getstring or getreal to be blank without causing other mtext issues and have the results truncate accordingly? Sometimes my surveyors don't always need to provide all the information on adjacent parcels.
Thanks again for any help anyone is able to provide.
Solved! Go to Solution.