/// <summary> /// Sets value. /// </summary> /// <param name="id">The object ID.</param> /// <param name="dictionary">The dictionary name.</param> /// <param name="key">The key.</param> /// <param name="value">The value.</param> public static void SetValue(ObjectId id, string dictionary, string key, string value) { CustomDictionary.SetEntry(CustomObjectDictionary.GetDictionaryId(id, dictionary), key, value); }
/// <summary> /// Gets all keys from a dictionary. /// </summary> /// <param name="id">The object ID.</param> /// <param name="dictionary">The dictionary name.</param> /// <returns>The keys.</returns> public static IEnumerable <string> GetEntryNames(ObjectId id, string dictionary) { return(CustomDictionary.GetEntryNames(CustomObjectDictionary.GetDictionaryId(id, dictionary))); }
/// <summary> /// Gets value. /// </summary> /// <param name="id">The object ID.</param> /// <param name="dictionary">The dictionary name.</param> /// <param name="key">The key.</param> /// <returns>The value.</returns> public static string GetValue(ObjectId id, string dictionary, string key) { return(CustomDictionary.GetEntry(CustomObjectDictionary.GetDictionaryId(id, dictionary), key)); }