Can someone tell me what I am missing? Trying to pursue a diff method to change layer lock state. My assumption is that the 70 group code does this with 0=unlock & 4=lock...
(setq lyr "s-layer")
(setq lyr_data (tblsearch "layer" lyr)) ;(0 . "LAYER") (2 . "S-LAYER") (70 . 4) (62 . 7) (6 . "Continuous"))
(setq lyr_data (subst (cons 70 0) (assoc 70 lyr_data) lyr_data))
(entmod lyr_data)