mengxiangge 5 years ago
parent
commit
f4cfa6fdbb
2 changed files with 4 additions and 5 deletions
  1. 2 3
      Executer/DataExport/RevitToJBim/MBI/MBIDocument.cs
  2. 2 2
      Starter/Starter/Program.cs

+ 2 - 3
Executer/DataExport/RevitToJBim/MBI/MBIDocument.cs

@@ -49,13 +49,12 @@ namespace RevitToJBim.MBI
         {
             MBIDocument dto = new MBIDocument();
             JObject jObject = JObject.Parse(param);
+            dto.MBIName = jObject.GetValueEx("MBIName");//待读取
+            dto.ModelId = jObject.GetValueEx("ModelId");
 
 #if DEBUG
             //dto.MBIName = "Pj1101010038";//待读取
             //dto.ModelId = "47e62800220811ea962a7d2b043144ce";
-#else
-            dto.MBIName = jObject.GetValueEx("MBIName");//待读取
-            dto.ModelId = jObject.GetValueEx("ModelId");
 #endif
 
 

+ 2 - 2
Starter/Starter/Program.cs

@@ -40,8 +40,8 @@ namespace ExportStart
                 command = "DataExport";
                 //command = "DataCheck";
                 path = @"E:\导出测试\testSpace.rvt";
-                path = @"E:\导出测试\系统图修改编码版\给排水系统图模型第一版V1129.rvt";
-                path = @"C:\Users\SAGACLOUD\Desktop\新建文件夹\88.rvt";
+                path = @"E:\导出测试\系统图修改编码版\消防系统图模型第一版V1219.rvt";
+                //path = @"C:\Users\SAGACLOUD\Desktop\新建文件夹\88.rvt";
                 //path = @"D:\安装包\CAD\测试模型\F4测试.rvt";
                 JObject jObject = new JObject();
                 jObject.Add("ResultFileName", @"C:\Users\SAGACLOUD\AppData\Local\RevitService\Result_e26be2fd-2097-462b-bdd0-a2a86b616928.txt");