Browse Source

xls:数据兼容修改

xulisong 6 years ago
parent
commit
a83d7cb644

+ 4 - 1
MBI/SAGA.GplotManage/Command/ColdGplot/ColdRoomSystemParse.cs

@@ -21,7 +21,10 @@ namespace SAGA.GplotManage
             base.Parse();
             GplotOptions options = new GplotOptions();
             options.BaseOnDefinition(Definition);
-            SystemParse parse = new SystemParse(new SystemParseSetting(options));
+            var relationType= RelationTypeManager.GetRelationTypeItem(Definition.Name.Split('-')[0]);
+            if (relationType == null)
+                return new GplotParseData();
+            SystemParse parse = new SystemParse(new SystemParseSetting(new RelationTypeShell(relationType)));
             StartElementsManager startManager = new StartElementsManager(options);
             //可能出现多个document;每一个document是一个测试节点
             var fileInfos = RevitModelPath.GetAllRevitFiles();

+ 1 - 0
MBI/SAGA.GplotRelationComputerManage/RevitSystemParse/Handler/SystemParseSetting.cs

@@ -20,6 +20,7 @@ namespace SAGA.GplotRelationComputerManage
         public SystemParseSetting(GplotOptions options)
         {
             //GplotOptions = options;
+            //var relationType = RelationTypeManager.GetRelationTypeItem(options.);
         }
         public SystemParseSetting(RelationTypeShell relationShell)
         {