entmod
(entmod list)
Changes the entity of code -1 with the values of the list (the others stay the same). If the layer does not exist, it is created. Returns the list, or nil if it cannot.
(setq e (entget (entlast))) (entmod (subst '(62 . 1) (assoc 62 e) e))
Differences with AutoCAD
Only for LINE, CIRCLE, ARC, LWPOLYLINE, TEXT, MTEXT, POINT, INSERT and ATTRIB.