IFCExportElementType 类型用于表示 Revit 中可导出为 IFC 文件的构件类型。
以下是支持导出为 IFC 文件的构件类型。
| 构件类型 | IFCExportElementType 枚举值 |
|---|---|
| 墙 | Wall |
| 柱 | Column |
| 地板 | Floor |
| 屋顶 | Roof |
| 窗户 | Window |
| 门 | Door |
| 楼梯 | Stair |
| 楼板 | Slab |
| 桥塔 | Bridge |
| 梁 | Beam |
| 柱帽 | ColumnCap |
| 等高线 | Topography |
| 景观(树、灌木、草) | Landscaping |
| 家具 | Furniture |
| 空气终端 | AirTerminal |
| 照明设备 | LightingFixture |
| 基于围墙和结构墙的面或墙 | WallAndColumn |
| 家用电器 | ElectricalAppliance |
| 电气设备 | ElectricalEquipment |
| 管道系统 | PipeAccessory |
| 风口/回风口/换气扇/空调盒 | AirTerminalAccessory |
| 安全系统 | FireAlarmDevice |
| 管道 | DuctPipe |
| 带孔构件(墙、柱、地板) | EncodedPolygon |
| 不支持的构件类型 | Undefined |
// 导出墙和柱作为 IFC 文件
var exportTypeList = new List<IFCExportElementType>{ IFCExportElementType.Wall, IFCExportElementType.Column };
var exportOptions = new IFCExportOptions { };
var result = document.Export(@"C:\path\to\output.ifc", "IFC 4", exportTypeList, exportOptions);
Undefined 枚举值用于表示 Revit 中不支持导出为 IFC 文件的构件类型。IFCExportElementType 枚举值在 List 中的顺序表示导出时的输出顺序。IFCExportOptions 类型进行设置。