Example #1
0
        public DicED LoadED(string dicName)
        {
            var dicPluginId = GetDicPlugin(false);
            var dicResId    = ExtDicHelper.GetDic(dicPluginId, dicName, false, false);
            var res         = ExtDicHelper.GetDicEd(dicResId);

            if (res != null)
            {
                res.Name = dicName;
            }

            return(res);
        }
Example #2
0
        private ObjectId GetDicPlugin(bool create)
        {
            ObjectId res;
            var      dicNodId = Db.NamedObjectsDictionaryId;
            var      dicPikId = ExtDicHelper.GetDic(dicNodId, dictName, create, false);

            if (string.IsNullOrEmpty(dictInnerName))
            {
                res = dicPikId;
            }
            else
            {
                var dicPluginId = ExtDicHelper.GetDic(dicPikId, dictInnerName, create, false);
                res = dicPluginId;
            }

            return(res);
        }
Example #3
0
        private ObjectId GetRec([NotNull] string key, bool create)
        {
            var dicId = GetDicPlugin(create);

            return(ExtDicHelper.GetRec(dicId, key, create, false));
        }