| | |
| | | return false; |
| | | } |
| | | |
| | | var hydroInfo = HStation.Hydro.ParseHelper.FromRevit(revitModel); |
| | | var hydroInfo = HStation.Hydro.ParseHelper.FromRevit(revitModel, out string msg); |
| | | if (hydroInfo == null) |
| | | { |
| | | feedBackMsg?.Invoke("水力结构文件解析失败!!!"); |
| | | feedBackMsg?.Invoke($"水力结构文件解析失败,{msg}!!!"); |
| | | return false; |
| | | } |
| | | |
| | |
| | | return true; |
| | | } |
| | | |
| | | var bimfaceId = await Yw.WinFrmUI.BimfaceHelper.UploadFile(rvtFileInfo.FullName);//上传 |
| | | //var bimfaceId = 10000869537010; //测试用例 |
| | | //var bimfaceId = await Yw.WinFrmUI.BimfaceHelper.UploadFile(rvtFileInfo.FullName);//上传 |
| | | var bimfaceId = 10000869537010; //测试用例 |
| | | if (bimfaceId < 1) |
| | | { |
| | | feedBackMsg?.Invoke("Revit模型文件上传失败!!!"); |
| | |
| | | #region 第九步 发起bimface转换(进度 80%) |
| | | |
| | | feedBackMsg?.Invoke("正在进行Bimface模型轻量化..."); |
| | | var bimfaceTranslateStatus = await Yw.WinFrmUI.BimfaceHelper.TranslateRvtFile(bimfaceId);//发起转换 |
| | | //var bimfaceTranslateStatus = Yw.BIMFace.eTranslateStatus.Processing;//测试代码 |
| | | // var bimfaceTranslateStatus = await Yw.WinFrmUI.BimfaceHelper.TranslateRvtFile(bimfaceId);//发起转换 |
| | | var bimfaceTranslateStatus = Yw.BIMFace.eTranslateStatus.Processing;//测试代码 |
| | | feedBackProgress?.Invoke(100, 60); |
| | | if (bimfaceTranslateStatus != Yw.BIMFace.eTranslateStatus.Success) |
| | | { |