(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

 

Tell me about...

(entdel entity-name)

(entget entity-name [application-list])

(entlast)

(entmake [entity-list])

(entsel [prompt])

(entupd entity-name)

(nentsel [prompt])

(nentselp [prompt] [point])

(setq symbol1 statement1 [symbol2 statement2] ...)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language

 


Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved.