Hi Roy
I have tried that and no layer is created, no errors either, just does nothing
[/(defun mlay (Lname Lcolor Ltype Lweight / )
(entmake (list (cons 0 "LAYER") ; Entitiy Name
(cons 100 "AcDbSymbolTableRecord") ; Class
(cons 100 "AcDbLayerTableRecord") ; SubClass
(cons 2 Lname) ; Layer Name
(cons 62 Lcolor) ; Color
(cons 6 Ltype) ; Line Type
(cons 370 Lweight) ; Line Weight, (Omit for Default)
)
)
(princ)
)
(defun c:test ( / )
(mLay "trash" 4 "Continuous" 18)
(princ)
)code]
---edit---
I caught my misspelling for "Continuous" and still nothing