public static void ViewObjectDict() { ObjectId id = Interaction.GetEntity("\nSelect entity"); if (id == ObjectId.Null) { return; } DictionaryViewer dv = new DictionaryViewer( // Currying () => CustomObjectDictionary.GetDictionaryNames(id), x => CustomObjectDictionary.GetEntryNames(id, x), (x, y) => CustomObjectDictionary.GetValue(id, x, y), (x, y, z) => CustomObjectDictionary.SetValue(id, x, y, z) ); Application.ShowModalWindow(dv); }
public static void SetData(this ObjectId id, string dict, string key, string value) { CustomObjectDictionary.SetValue(id, dict, key, value); }