The Autodesk.Revit.DB.Electrical.NeutralMode class is a part of the Revit API for managing the neutral mode of an electrical system within a Revit project. It is located under the Autodesk.Revit.DB.Electrical namespace.
NoneRepresents no neutral mode is used in an electrical system.
SinglePhaseRepresents a single phase neutral mode is used in an electrical system.
ThreePhaseRepresents a three phase neutral mode is used in an electrical system.
The neutral mode is an important aspect of electrical design and refers to the way in which the voltage is distributed in a circuit. The Autodesk.Revit.DB.Electrical.NeutralMode class can be used in combination with other classes in the Autodesk.Revit.DB.Electrical namespace to create and modify electrical systems within a Revit project.
// Create a new electrical system
ElectricalSystem system = new ElectricalSystem();
// Set the neutral mode to three phase
system.NeutralMode = Autodesk.Revit.DB.Electrical.NeutralMode.ThreePhase;
// Add the system to the Revit project
Document doc = uidoc.Document;
Transaction trans = new Transaction(doc, "Add System");
trans.Start();
doc.Create.NewSystem(system);
trans.Commit();
In this example, a new electrical system is created with a NeutralMode of ThreePhase and then added to the Revit project using a transaction.
Autodesk.Revit.DB.MEP.ElectricalSystemAutodesk.Revit.DB.Electrical.CircuitLoadTypeAutodesk.Revit.DB.Electrical.CircuitPhaseAutodesk.Revit.DB.Electrical.ElectricalLoadClassificationAutodesk.Revit.DB.Electrical.ElectricalSystemType