Autodesk.Revit.DB.BaseExportOptions
类是 Revit API 中的一种基类,用于定义将 Revit 文档导出到其他文件格式的选项。
Autodesk.Revit.DB.CustomExporterOptions
Autodesk.Revit.DB.BaseExportOptions
AmbientOcclusion
Boolean
ExportAsCoordinationView
Boolean
ExportBoundingBox
Boolean
ExportColorMode
ExportColorMode
ExportEdgeWelds
Boolean
ExportFlatLayerOptimization
Boolean
ExportGroups
Boolean
ExportLinks
Boolean
ExportOfGBXMLSpaces
Boolean
ExportPartsAsBuildingElements
Boolean
ExportRoomAsDoorsWindows
Boolean
ExportScope
View
ExportSheetGeometry
Boolean
ExportingLinkDocument
Document
FileVersion
String
Clone
// 创建导出选项
var exportOptions = new BaseExportOptions();
// 设置导出选项
exportOptions.AmbientOcclusion = true;
exportOptions.ExportAsCoordinationView = false;
exportOptions.ExportBoundingBox = true;
exportOptions.ExportColorMode = ExportColorMode.Indexed;
exportOptions.ExportEdgeWelds = true;
exportOptions.ExportFlatLayerOptimization = false;
exportOptions.ExportGroups = true;
exportOptions.ExportLinks = true;
exportOptions.ExportOfGBXMLSpaces = false;
exportOptions.ExportPartsAsBuildingElements = true;
exportOptions.ExportRoomAsDoorsWindows = false;
exportOptions.ExportSheetGeometry = true;
// 导出 Revit 文档为 SAT 文件
var satPath = "C:\\Users\\myUserName\\Documents\\SAT\\MyModel.sat";
var satOptions = new SATExportOptions(exportOptions);
revitDoc.Export(satPath, "MyModel", satOptions);