This routine draws our elevation lines (grade, top of foundation, first & second floor & ceiling lines, first & second fascias).
I want to extend the grade, floor & ceiling lines 2'-0" each way after created.
Also, extend the fascia lines 1'-0" each way and create a vertical line on each side to close them-----v
------------------------------------------
___________________________
|___________________________|
-----------------------------------------
-----------------------------------------
___________________________
|___________________________|
------------------------------------------
___________________________
___________________________________
Sorta what it would look like...also, what's an easy way to create the layers it will change them to if they're not already created?
I know this is a bunch of stuff, but I'm trying to learn, and seeing the way others do it is so much easier to understand and breakdown than reading tutorials is. I hijacked some formatting from other posts to spruce mine up, and make it more legible. Spank you very much for any help.
;; ElevationLines.lsp
;; Created by Dominic Cesare
;; 01/23/2004
;;======================
;; Start of Routine
;;======================
(defun c:ELEVATIONLINES()
;;; ------- Getting Floor Heights ------------------
(setq HT1 (getdist "\nEnter First Floor Height : "))
(setq HT2 (getdist "\nEnter Second Floor Height : "))
;;; ------- Getting Variable First Floor Construction Height ------------------
(setq FC1 (getdist "\nEnter First Floor Construction Height : "))
;;; ------- Setting Up & Down for offsetting ------------------
(setq DN '(0 -100000000)
UP '(0 100000000)
)
;;; ------- Creating Grade & Top of Foundation ------------------
;creating grade line
(command "line" pause pause "")
;setting grade line to L1
(setq L1 (entlast))
;changing grade line to layer wall, color white
(command "change" L1 "" "P" "LA" "WALL" "C" "WHITE" "")
;creating top of foundation line
(command "offset" "8.0" L1 UP "")
;setting top of foundation line to FDN
(setq FDN (entlast))
;changing top of foundation line to layer wall, color 15
(command "change" FDN "" "P" "LA" "WALL" "C" "15" "")
;;; ------- Creating First Floor Lines ------------------
;creating first floorline
(command "offset" FC1 FDN UP "")
;setting first floorline to FLR1
(setq FLR1 (entlast))
;changing first floorline to layer FLR, color bylayer
(command "change" FLR1 "" "P" "LA" "FLR" "C" "BYLAYER" "")
;creating first floor ceilingline
(command "offset" HT1 FLR1 UP "")
;setting first floor ceilingline to CLG1
(setq CLG1 (entlast))
;changing first floor ceilingline to layer CLG
(command "change" CLG1 "" "P" "LA" "CLG" "")
;;; ------- Creating First Floor Fascia ------------------
;creating top of first floor fascia
(command "offset" "3.0" CLG1 DN "")
;setting top of first floor fascia to F1T
(setq F1T (entlast))
;changing top of first floor fascia to layer WALL
(command "change" F1T "" "P" "LA" "WALL" "")
;creating bottom of first floor fascia
(command "offset" "8.0" F1T DN "")
;setting bottom of first floor fascia to F1B
(setq F1B (entlast))
;;; ------- Creating Second Floor Lines ------------------
;creating second floorline
(command "offset" "10.0" CLG1 UP "")
;setting second floorline to FLR2
(setq FLR2 (entlast))
;changing second floorline to layer FLR
(command "change" FLR2 "" "P" "LA" "FLR" "")
;creating second floor ceilingline
(command "offset" HT2 FLR2 UP "")
;setting second floor ceilingline to CLG2
(setq CLG2 (entlast))
;changing second floor ceilingline to layer CLG
(command "change" CLG2 "" "P" "LA" "CLG" "")
;;; ------- Creating Second Floor Fascia ------------------
;creating top of second floor fascia
(command "offset" "3.0" CLG2 DN "")
;setting top of second floor fascia to F2T
(setq F2T (entlast))
;changing top of second floor fascia to layer WALL
(command "change" F2T "" "P" "LA" "WALL" "")
;creating bottom of second floor fascia
(command "offset" "8.0" F2T DN "")
;setting top of second floor fascia to F2B
(setq F2B (entlast))
(princ)
)
(princ)
;;======================
;; End of Routine
;;======================