This information cannot be passed to entmod because it is missing the -1 group (the entity name), which is the primary identifier for objects in the database.
So... what function would I use to retrieve the correct list of dotted pairs information from the database so that it can be modified and updated in the database?
The entmod function updates database information for the entity name specified by the ?1 group in elist. The primary mechanism through which AutoLISP updates the database is by retrieving entities with entget, modifying the list defining an entity, and updating the entity in the database with entmod. The entmod function can modify both graphical and nongraphical objects.
I think you have a logic error. The layer table is definately a nongraphical entity, but just because entmod can modify both graphical and nongraphical objects does not mean it can modify ALL nongraphical objects. eh?
It would be an interesting piece of code, I have tried similar and hit the same wall. I see the value. You could do some neat stuff modifying the 70's.....
I am going to sit back and wait and see if there is a sharper knife in the drawer here.
PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.