123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /*-------------------------------------------------------------------------
- * 功能描述:FloorFlag
- * 作者:xulisong
- * 创建时间: 2019/1/17 17:39:38
- * 版本号:v1.0
- * -------------------------------------------------------------------------*/
- using Autodesk.Revit.DB;
- using SAGA.RevitUtils.Extends;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using SAGA.DotNetUtils.Extend;
- namespace SAGA.GplotRelationComputerManage
- {
- /*
- * 整体上不采用树形结构存储
- */
- /// <summary>
- /// 楼层信息记录
- /// </summary>
- public class FloorRecord: ServerData
- {
- public string FloorId { get; set; }
- public string FloorName { get; set; }
- public string FloorIndex { get; set; }
- /// <summary>
- /// 楼层高度
- /// </summary>
- public double FloorLevelElevation { get; set; }
-
- /// <summary>
- /// 设置楼层信息
- /// </summary>
- /// <param name="level"></param>
- public void SetFloorLevel(Level level)
- {
- if (level == null)
- return;
- FloorName = MBIInfoUtil.GetFloorNameByLevel(level.Name)??string.Empty;
- FloorLevelElevation = level.ProjectElevation.FromApi();
- FloorId = level.Document.PathName.GetFileName();
- BuildingName = MBIInfoUtil.GetBuildingName(FloorId);
- BuildingId = MBIInfoUtil.GetBuildingId(FloorId);
- }
- }
- }
|