Below is a section of code which we use to automatically colour code parcels based on their area. At present it automatically creates layers based on colour (ie Hatch_25512177). Is it possible to have it so it creates the layer based on the area as shown (ie Hatch_400 - 450) using the area1 values +.5
Sorry if I haven't explained it well 'but I hope you get what I mean.
Also apologize that I cannot supply the full lisp routine which also colours lots based on frontage and/or frontage and depth but I am not the owner.
(cond
(( < area1 399.5) (setq col "255,121,77"))
((and( >= area1 399.5)(< area1 449.5)) (setq col "242,95,171"))
((and( >= area1 449.5)(< area1 549.5)) (setq col "253,134,206"))
((and( >= area1 549.5)(< area1 599.5)) (setq col "253,206,243"))
((and( >= area1 599.5)(< area1 699.5)) (setq col "242,187,166"))
(( >= area1 699.5) (setq col "253,237,206"))
)
(setq colx (vl-string-subst "" "," col))
(setq colx (vl-string-subst "" "," colx))
(setq lay (strcat "Hatch_" colx))
(command "layer" "new" lay "")
(command "layer" "color" "truecolor" col lay "")
(command "LAYER" "SET" lay "")
(command "color" "bylayer")
(command "-bhatch" "p" "solid" "s" name "" "")