Autodesk.Revit.DB.IFC.ExporterIFCUtils是用于导出IFC文件的工具类。它提供了一些方法用于创建和处理IFC实体和属性。
以下是常用的方法:
public static IFCBeam CreateBeam(IFCExportInfoPair exportType, Document doc, FamilySymbol beamSymbol, XYZ origin, XYZ normal, double length, double depth, double width)
exportType: IFC导出类型。doc: Revit文档。beamSymbol: 梁族类型。origin: 起始点坐标。normal: 法向量。length: 长度。depth: 宽度。width: 深度。创建一个IFC梁。
public static IFCWall CreateWallStandardCase(IFCExportInfoPair exportType, Document doc, FamilySymbol wallType, XYZ startPoint, XYZ endPoint)
exportType: IFC导出类型。doc: Revit文档。wallType: 墙族类型。startPoint: 起始点坐标。endPoint: 终点坐标。创建一堵IFC标准墙。
public static IFCOpeningElement CreateOpening(IFCExportInfoPair exportType, Document doc, FamilySymbol openingSymbol, IList<Curve> curves, XYZ normal, int index, string ifcName, IFCElementComposition ifcCompositionType, IFCBoolean ifcBooleanOper, bool exportPartsAsBuildingElements)
exportType: IFC导出类型。doc: Revit文档。openingSymbol: 开口族类型。curves: 建模线。normal: 法向量。index: 索引。ifcName: IFC名称。ifcCompositionType: IFC元素组成类型。ifcBooleanOper: IFC布尔操作类型。exportPartsAsBuildingElements: 是否将零件导出为构建元素。创建一个IFC开口。
public static IFCExportInfoPair GetExportType(Element elem, IFCExportConfigurations exportConfigurations)
elem: 元素。exportConfigurations: IFC导出配置。获取元素的IFC导出类型。
Autodesk.Revit.DB.IFC.ExporterIFCUtils提供了一些用于创建和处理IFC实体和属性的方法。这些方法使我们可以方便地将Revit模型导出为IFC文件。