Autodesk.Revit.DB.PlanCircuit是一种用于存储Revit图纸回路的类。
//创建回路
PlanCircuit circuit = new PlanCircuit(document);
//设置回路属性
circuit.Name = "Lighting Circuit 1";
circuit.Number = "LC1";
circuit.Panel = panel;
circuit.CircuitBreakerType = circuitBreakerType;
circuit.LoadClassificationId = classificationId;
circuit.ExternalCircuitInfo = "Lighting circuit for level 1";
//添加分支和负载
circuit.AddInternalBranch(branch);
circuit.AddLoad(load);
//添加相连的电器面板
PlanCircuit connectedCircuit = ...;
circuit.AddConnectedPanel(connectedCircuit.Panel);