xulisong 5 лет назад
Родитель
Сommit
a3dbfa4618
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      JBIM/RevitToJBim/MbiExport.cs

+ 1 - 1
JBIM/RevitToJBim/MbiExport.cs

@@ -53,7 +53,7 @@ namespace RevitToJBim
                 var resultResponse=HttpUtils.PostFormDataFile("http://192.168.20.225:8080/revit-algorithm/upload-json-zip/upload", stream);
                 var resultResponse=HttpUtils.PostFormDataFile("http://192.168.20.225:8080/revit-algorithm/upload-json-zip/upload", stream);
                 string fileName = DateTime.Now.ToString("yyyyMMddHHmmss");
                 string fileName = DateTime.Now.ToString("yyyyMMddHHmmss");
                 string path = Path.Combine(@"D:\", $"{fileName}.json");
                 string path = Path.Combine(@"D:\", $"{fileName}.json");
-                File.WriteAllText(path, resultResponse);
+                File.WriteAllText(path, resultResponse.ToString());
                 System.Diagnostics.Process.Start("notepad.exe", path);
                 System.Diagnostics.Process.Start("notepad.exe", path);
             }
             }
             catch (Exception ex)
             catch (Exception ex)