Autodesk.Revit.DB.Electrical.CircuitType
是Revit中用于表示电路类型的类。该类可以用于获取或设置电路类型的相关属性。
电路类型的名称。
定义了电路类型连接到的面板。
电路类型的电压(单位:伏特)。
电路类型的电线尺寸。
// 创建电路类型
CircuitType circuitType = new CircuitType();
circuitType.Name = "Lighting Circuits"; // 设置电路类型名称
circuitType.Voltage = 120.0; // 设置电路类型电压
// 获取电路类型所连接的面板对象
Panel panel = new Panel();
circuitType.Panel = panel;
// 获取电路类型的电线尺寸对象
WireSize wireSize = new WireSize();
circuitType.WireSize = wireSize;