@Nathan_Tigner wrote:
The FND number would be exactly the same as the FFE, So how would I change the lisp so that it would add both FFE and FND?
Here you go
(Defun c:demo ( / Elev steps ffe ipnt)
(setq name '("SLAB" "GARAGE"))
(initget 1 "Y N")
(if (and
(setq Fnd (getkword "\nInclude FND on Text[Yes/No]: "))
(setq Elev (getdist "\nElevation: "))
(setq Steps (getint "\nNumber of steps: "))
(setq ffe ( + Elev (* 0.067 Steps)))
)
(foreach itm (list
(list (car name)
(strcat (car name) "\\PFFE=" (rtos ffe 2 2)
(if (eq Fnd "Y") (strcat "\\PFND=" (rtos ffe 2 2) ) "")))
(list (cadr name)
(strcat (cadr name)"\\P" (itoa steps) " STEP\\PG=" (rtos Elev 2 2)))
)
(if (setq ipnt (getpoint (strcat "\nPick text insertion point for " (Car itm))))
(entmakex
(list
(cons 0 "MTEXT")
(cons 100 "AcDbEntity")
(cons 100 "AcDbMText")
(cons 10 ipnt)
'(71 . 2)
'(72 . 5)
(cons 1 (cadr itm))
)
)
)
)
)
(princ)
)
Command: DEMO
Include FND on Text[Yes/No]: N
Elevation: 12.35
Number of steps: 2
Pick text insertion point for SLAB
Pick text insertion point for GARAGE
Command: DEMO
Include FND on Text[Yes/No]: Y
Elevation: 23.56
Number of steps: 4
Pick text insertion point for SLAB
Pick text insertion point for GARAGE