Exemple #1
0
        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);
 }
        //
        // EzData - newly 20140520
        //

        public static string GetData(this ObjectId id, string dict, string key)
        {
            return(CustomObjectDictionary.GetValue(id, dict, key));
        }