Example #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);
        }
Example #2
0
 public static void SetData(this ObjectId id, string dict, string key, string value)
 {
     CustomObjectDictionary.SetValue(id, dict, key, value);
 }
Example #3
0
        //
        // EzData - newly 20140520
        //

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