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); }
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); }