I have an application to maintain water/sewer networks in AutoCAD and a Relational Database.
How can I detect when the user performs UNDO or REDO, and identify what features have been affected by this operation, since I need to maintain integrity between CAD and Database.
That means if the user UNDO a water pipe creation I need to delete programmatically the same pipe in the database.
If the user REDO the pipe creation I need to recreate the pipe in the database.
I think you may use doc.Database object events
Database db = doc.Database;
db.ObjectAppended+=...
db.ObjectErased+=...
db.ObjectModified+=...
db.ObjectReappended+=...
db.ObjectUnappended+=...
In every event you can perform operation that you need
to link with SQL / Access Database
Not tested actually,j ust a guess, sorry