From 9d75f0401985156299472e66d2fff07a854d9c67 Mon Sep 17 00:00:00 2001
From: qin <a@163.com>
Date: 星期日, 15 十二月 2024 20:19:02 +0800
Subject: [PATCH] 提交文件

---
 HStation.RevitDev/RevitDataExport/Utility/CacheUtil.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/HStation.RevitDev/RevitDataExport/Utility/CacheUtil.cs b/HStation.RevitDev/RevitDataExport/Utility/CacheUtil.cs
index 8cdba56..24325f9 100644
--- a/HStation.RevitDev/RevitDataExport/Utility/CacheUtil.cs
+++ b/HStation.RevitDev/RevitDataExport/Utility/CacheUtil.cs
@@ -81,7 +81,7 @@
             File.WriteAllText(GlobalResource.RecordFilePath, config);
         }
 
-        public static bool UploadFile(Document _doc,string desc, out string err)
+        public static bool UploadFile(Document _doc, string desc, out string err)
         {
             err = "";
             var tempDir = Path.Combine(Path.GetDirectoryName(GlobalResource.BinDirectory), "temp"); //"d:\\temp";
@@ -169,6 +169,7 @@
                 var modelFile = tempDir + "\\model.rvt";
                 var settingFile = tempDir + "\\setting.json";
                 var otherFile = tempDir + "\\struct_others.json";
+                var userFile = GlobalResource.LoginUserFilePath;
 
                 try
                 {
@@ -194,7 +195,7 @@
                     var setting = new SettingsViewModel() { Version = "1" };
                     File.WriteAllText(settingFile, JsonHelper.ToJson(setting));
 
-                    var files = new string[] { structFile, modelFile, settingFile, otherFile };
+                    var files = new string[] { structFile, modelFile, settingFile, otherFile, userFile };
                     ZipFiles(files, zipFilePath);
 
                     File.Delete(structFile);
@@ -289,7 +290,7 @@
             if (document == null) { return; }
 
             //var ids = GlobalResource.RevitModels.GetOtherIds()?.Select(x => new ElementId(int.Parse(x))).ToList();
-            var notContains = new List<string>() { "鍥句緥鏋勪欢", "妤兼澘", "澧�","鏍忔潌鎵舵墜","妤兼" };
+            var notContains = new List<string>() { "鍥句緥鏋勪欢", "妤兼澘", "澧�", "鏍忔潌鎵舵墜", "妤兼" };
             var nameContains = new List<string>() { "娣峰嚌鍦熷簳搴�" };
             var c3 = new Autodesk.Revit.DB.FilteredElementCollector(document).WhereElementIsNotElementType();//.WhereElementIsElementType();
             var c4 = new Autodesk.Revit.DB.FilteredElementCollector(document).WhereElementIsElementType();

--
Gitblit v1.9.3