|
@@ -118,6 +118,7 @@ namespace SAGA.MBI.WinView.Upload
|
|
int i = 0, count = upfloors.Count;
|
|
int i = 0, count = upfloors.Count;
|
|
List<string> successList = new List<string>();
|
|
List<string> successList = new List<string>();
|
|
List<string> failList = new List<string>();
|
|
List<string> failList = new List<string>();
|
|
|
|
+ List<CalcContext> useCalcContexts = new List<CalcContext>();
|
|
foreach (var ufloor in upfloors)
|
|
foreach (var ufloor in upfloors)
|
|
{
|
|
{
|
|
try
|
|
try
|
|
@@ -128,7 +129,7 @@ namespace SAGA.MBI.WinView.Upload
|
|
string floorName = ufloor.FloorName;
|
|
string floorName = ufloor.FloorName;
|
|
failList.Add(floorName);
|
|
failList.Add(floorName);
|
|
|
|
|
|
-
|
|
|
|
|
|
+ useCalcContexts.Add(new CalcContext(floor));
|
|
#region 同步空间名称
|
|
#region 同步空间名称
|
|
var document = ExternalDataWrapper.Current.App.OpenDocumentFile(floor.FullPath);
|
|
var document = ExternalDataWrapper.Current.App.OpenDocumentFile(floor.FullPath);
|
|
MBIModelInfoManager.SyncPlatformToRevit(document);
|
|
MBIModelInfoManager.SyncPlatformToRevit(document);
|
|
@@ -160,7 +161,7 @@ namespace SAGA.MBI.WinView.Upload
|
|
}
|
|
}
|
|
#region 上传底图文件
|
|
#region 上传底图文件
|
|
Log4Net.Debug($"开始楼层底图上传");
|
|
Log4Net.Debug($"开始楼层底图上传");
|
|
- MBIModelInfoUpload.UpdateMbiInfo(upfloors.Select(f => f.CalcContext).ToList());
|
|
|
|
|
|
+ MBIModelInfoUpload.UpdateMbiInfo(useCalcContexts);
|
|
Log4Net.Debug($"结束楼层底图上传");
|
|
Log4Net.Debug($"结束楼层底图上传");
|
|
#endregion
|
|
#endregion
|
|
|
|
|