12345678910111213141516171819202122232425262728293031323334353637 |
- /*-------------------------------------------------------------------------
- * 功能描述:SystemComputerHandler
- * 作者:xulisong
- * 创建时间: 2019/1/17 9:42:03
- * 版本号:v1.0
- * -------------------------------------------------------------------------*/
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using SAGA.MBI.Tools;
- namespace SAGA.GplotRelationComputerManage
- {
- public class SystemComputerHandler
- {
- public List<object> GetParseData(SystemComputerContext context)
- {
- List<object> items = new List<object>();
- var fileInfos = RevitModelPath.GetAllRevitFiles();
- foreach (var fileInfo in fileInfos)
- {
- if (File.Exists(fileInfo))
- {
- FloorSystemItem floorItems = context.FloorItems.GetItem(fileInfo);
- floorItems.Parse(context);
- floorItems.Document.CloseDocSimple();
- }
- }
- //最后统保存缓存数据
- return items;
- }
- }
- }
|