The Autodesk.Revit.DB.Electrical.CircuitNaming
class in Revit is responsible for providing a naming convention for electrical circuits in a project.
CircuitNumber
(string): The circuit number assigned to the circuit.CircuitPrefix
(string): The prefix for the circuit number.PanelName
(string): The name of the panel to which the circuit is connected.CircuitName()
: Generates the circuit name based on the circuit prefix, circuit number and panel name.// create a new instance of the CircuitNaming class
CircuitNaming circuit = new CircuitNaming();
// set the circuit properties
circuit.CircuitPrefix = "LT";
circuit.CircuitNumber = "001";
circuit.PanelName = "Panel 1";
// generate the circuit name
string circuitName = circuit.CircuitName(); // LT001 Panel 1
The CircuitNaming
class is used within the context of electrical circuits in Revit, and provides a standardized convention for naming circuits consistently throughout a project.
It is important to note that the CircuitNaming
class only generates the circuit name; it does not create or modify circuits in the Revit model.