The Autodesk.Revit.DB.Electrical.VoltageTypeSet
class represents a set of voltage types in Revit's electrical system. It is used to manage and manipulate the available voltage types.
// Create a voltage type set
VoltageTypeSet voltageTypes = new VoltageTypeSet();
// Add some voltage types
voltageTypes.Add(VoltageType.AC120V);
voltageTypes.Add(VoltageType.AC240V);
voltageTypes.Add(VoltageType.DC24V);
// Check if the set contains a specific voltage type
if (voltageTypes.Contains(VoltageType.AC120V))
{
Console.WriteLine("AC120V is in the set.");
}
// Remove a voltage type from the set
voltageTypes.Remove(VoltageType.DC24V);
Autodesk.Revit.DB.Electrical.VoltageType
enum represents the available voltage types in Revit's electrical system.Autodesk.Revit.DB.Electrical.VoltageTypeSet
can be obtained from a FamilyVoltageTypeSet
or a ProjectVoltageTypeSet
object.