(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, 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...
(entget entity-name [application-list])
en
italiano
čeština
Deutsch
français
hrvatski
magyar
polski
српски
русский
中文
中文
한국어
español