Пример #1
0
        /// <summary>
        /// The entries stored in this property set description.
        /// </summary>
        public void AddEntry(PropertySetEntry entry)
        {
            //if the PropertySetDescription name and PropertySetEntry name are in the dictionary,
            Tuple <string, string> key = new Tuple <string, string>(this.Name, entry.PropertyName);

            if (ExporterCacheManager.PropertyMapCache.ContainsKey(key))
            {
                //replace the PropertySetEntry.RevitParameterName by the value in the cache.
                entry.SetRevitParameterName(ExporterCacheManager.PropertyMapCache[key]);
            }

            entry.SetRevitBuiltInParameter(RevitBuiltInParameterMapper.GetRevitBuiltInParameter(key.Item1, key.Item2));
            entry.UpdateEntry();
            m_Entries.Add(entry);
        }