Autodesk.Revit.DB.Electrical.AnalyticalPowerSourceData是Revit电气系统中用于描述电气元件电源属性信息的数据类型。包括电压、频率、相序等属性。
在Revit插件中,可以通过创建实例对象对AnalyticalPowerSourceData进行读取和写入操作。
示例代码:
// 创建AnalyticalPowerSourceData实例
AnalyticalPowerSourceData powerSourceData = new AnalyticalPowerSourceData();
// 设置电源属性
powerSourceData.Voltage = 220.0;
powerSourceData.Frequency = 50.0;
powerSourceData.Phase = ElectricalPhase.ABC;
// 读取电源属性
double voltage = powerSourceData.Voltage; // 220.0
double frequency = powerSourceData.Frequency; // 50.0
ElectricalPhase phase = powerSourceData.Phase; // ElectricalPhase.ABC
Autodesk.Revit.DB.Electrical.AnalyticalPowerSourceData Class