Autodesk.Revit.DB.ExternalService.ExternalServices.BuiltInExternalServices 是一个 Revit API 类,提供了访问 Revit 内置外部服务的方法。
using Autodesk.Revit.DB.ExternalService;
using Autodesk.Revit.DB.ExternalService.ExternalServices;
BuiltInExternalServices.StructuralAnalysis
BuiltInExternalServices.IFC
BuiltInExternalServices.ExportImage
BuiltInExternalServices.ExportIFC
BuiltInExternalServices.ExportPDF
BuiltInExternalServices.ExportCAD
ExternalService externalService = ExternalServiceRegistry.GetService(typeof(CustomExternalService));
BuiltInExternalServices.RegisterService(externalService);
ExternalService structuralAnalysisService = BuiltInExternalServices.StructuralAnalysis;
ExternalService externalService = ExternalServiceRegistry.GetService(typeof(CustomExternalService));
BuiltInExternalServices.RegisterService(externalService);
使用该类之前需要确保已经添加以下引用: