Hello everyone, i'm using the below code to make a set of layers, however i'd also like to add a layer desc into the code. I can't find a DXF code reference for layer descriptions however. Any suggestions on how i can go about doing this. Thanks everyone.
(defun CreateLayer ( name color ltype lnwt plot )
(
(lambda ( _function )
(_function
(list
'(0 . "LAYER")
'(100 . "AcDbSymbolTableRecord")
'(100 . "AcDbLayerTableRecord")
'(70 . 0)
(cons 2 name)
(cons 6 (if (tblsearch "LTYPE" ltype) ltype "Continuous"))
(cons 62 color)
(cons 290 plot)
(cons 370 lnwt)
)
)
)
(if (tblsearch "LAYER" name)
(lambda ( data ) (entmod (cons (cons -1 (tblobjname "LAYER" name)) data)))
entmakex
)
)
)
(defun c:bakery ( / )
(foreach item
'(
;layer name in quotes, layer color, linetype in quotes, lineweight X100, plottable
("011001fxeq" 40 "Continuous" 40 1)
("011001demo" 40 "Continuous" 40 1)
("011001xist" 40 "Continuous" 15 1)
("011001relo" 40 "Continuous" 40 1)
)
(apply 'CreateLayer item)
)
(princ)
)
Thanks everyone, much appreciated,
John Gray