# (entmod entity-list) [GstarCAD 2012](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <a id="161"></a> ## (entmod entity-list) --- Modify the entity in that drawing. --- This function changes the entity defined by *entity-list* in the drawing database. You may have made changes to *entity-list* that you retrieved using [entget](%28entget%20entity-name%20-application-list-%29.md), so the function **entmod** writes the changed list permanently into the database. **Example** Use the following LISP code example as a pattern to change any property of any entity: | Code | Meaning | | --- | --- | | (setq en (entnext)) | Get the entity name of the first entity in the drawing. | | (setq en1 (entget en)) | Get the entity data from the entity name. | | (setq en1 (subst (cons 62 5\) | | | (assoc 62 en1) | Change the color to blue (color #5). | | en1)) | | | (**entmod** en1) | Modify the color of entity en1 | ### NOTES - **Entmod** checks that the following parameters are valid for every entity: layer name, linetype name, and color name or number. - **Entmod** automatically creates a layer if it does not already exist. **Tell me about...** [(entdel entity-name)](IDR_LISP_B157.md) [(entget entity-name \[application-list\])](%28entget%20entity-name%20-application-list-%29.md) [(entlast)](%28entlast%29.md) [(entmake \[entity-list\])](%28entmake%20-entity-list-%29.md) [(entsel \[prompt\])](%28entsel%20-prompt-%29.md) [(entupd entity-name)](%28entupd%20entity-name%29.md) [(nentsel \[prompt\])](%28nentsel%20-prompt-%29.md) [(nentselp \[prompt\] \[point\])](%28nentselp%20-prompt-%20-point-%29.md) [(setq symbol1 statement1 \[symbol2 statement2\] ...)](%28setq%20symbol1%20statement1%20-symbol2%20statement2-%20...%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2011](../../../../2011/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28entmod%20entity-list%29.md)