Another old snip from one of my files. This snip didn't have anything other then what you see so it must have been made "mid-thought" and I never got back to adding--at least--a description of what my intentions were.
The reason I post this is because I'm wondering if you should also include--or if you have already--the 16th bit as in the example, and group code description describes, below?
;; LAYER group codes
;;
;; Group codes - Description
;;
;; 100 - Subclass marker (AcDbLayerTableRecord)
;;
;; 2 - Layer name
;;
;; 70 - Standard flags (bit-coded values):
;; 1 = Layer is frozen; otherwise layer is thawed
;; 2 = Layer is frozen by default in new viewports
;; 4 = Layer is locked
;; 16 = If set, table entry is externally dependent on an xref
;; 32 = If both this bit and bit 16 are set, the externally dependent
;; xref has been successfully resolved
;; 64 = If set, the table entry was referenced by at least one entity
;; in the drawing the last time the drawing was edited. (This
;; flag is for the benefit of AutoCAD commands. It can be ignored
;; by most programs that read DXF files and need not be set by
;; programs that write DXF files)
;;
;; 62 - Color number (if negative, layer is off)
;;
;; 6 - Linetype name
;;
;; 290 - Plotting flag. If set to 0, do not plot this layer
;;
;; 370 - Lineweight enum value
;;
;; 390 - Hard-pointer ID/handle of PlotStyleName object
;;
'((-4 . "<or")
(-4 . "<not")
(70 . 1)
(-4 . "not>")
(-4 . "<not")
(70 . 2)
(-4 . "not>")
(-4 . "<not")
(70 . 4)
(-4 . "not>")
(-4 . "<not")
(70 . 16)
(-4 . "not>")
(-4 . "<not")
(62 . -7)
(-4 . "not>")
(-4 . "or>"))
)
)