I wonder whether it is possible to add custom attirbutes to AutoCAD Documents. Like, when adding new key-value pairs to the OS registry. I see this as a function that can add a pair "attribute" => "value" to the Document's database (or another saveable component) and later pull the "value" back by passing the "attribute" to another function.
It wouldn't surprise me if this didn't exist but still why wondering when I can ask more experienced... Thanks.
Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
DatabaseSummaryInfo info = db.SummaryInfo;
System.Collections.IDictionaryEnumerator cust = info.CustomProperties;
string key = cust.Entry.Key as string;
string value = cust.Entry.Value as string;
// Write the pair wherever you want it for later, or just use it