qin
2024-09-28 e358beb08f5be49703009b64f058ecfbcfeefbd9
HStation.RevitDev/RevitDataExport/Service/RevitMepElementService.cs
@@ -154,9 +154,12 @@
        public static List<string> GetElementModels(RevitType type)
        {
            List<string> ret = new List<string>();
            var doc = GlobalResource.CurrentDocument;
            if (!GlobalResource.RevitModels.ContainsKey(type)) { return ret; }
            return GlobalResource.RevitModels[type];
            var doc = GlobalResource.CurrentDocument;
            var dict = GlobalResource.RevitModels.Find(x=>x.Item1 == doc.Title)?.Item2;
            if (dict == null) { return ret; }
            return dict[type];
        }
    }
}