示例#1
0
        public void Add(string modelFile, ModelTransformInfo modelTrf)
        {
            if (MemberModels.ContainsKey(modelFile))
            {
                return;
            }
            FederationModelItem mItem = new FederationModelItem();

            mItem.ModelFileName  = modelFile;
            mItem.ModelTransform = modelTrf;
            MemberModels.Add(modelFile, mItem);
        }
示例#2
0
        public void Remove(string modelFile)
        {
            string model = modelFile;

            if (!MemberModels.ContainsKey(model))
            {
                if (UseRelativePath)
                {
                    model = XBimFederation.relativePath(Path.GetDirectoryName(fedFilePath), model);
                    if (!MemberModels.ContainsKey(model))
                    {
                        return;
                    }
                }
            }
            MemberModels.Remove(model);
        }