The Autodesk.Revit.DB.Electrical.DistributionSysTypeSetIterator
class represents an iterator for a set of distribution system types in Revit's electrical domain. This class is used to iterate through the available distribution system types for an electrical document.
The DistributionSystemType
property of the Autodesk.Revit.DB.Electrical.DistributionSysTypeSetIterator
class returns the current distribution system type in the iteration.
The MoveNext()
method of the Autodesk.Revit.DB.Electrical.DistributionSysTypeSetIterator
class advances the iterator to the next distribution system type.
Instances of the Autodesk.Revit.DB.Electrical.DistributionSysTypeSetIterator
class are obtained using the Autodesk.Revit.DB.Electrical.ElectricalDocument
class.
The following code example shows how to use the Autodesk.Revit.DB.Electrical.DistributionSysTypeSetIterator
class in a C# program to iterate through the available distribution system types for an electrical document:
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Electrical;
// Get the active electrical document
ElectricalDocument doc = commandData.Application.ActiveUIDocument.Document;
// Iterate through the available distribution system types
foreach (DistributionSystemType systemType in doc.AvailableDistributionSystemTypes)
{
// Do something with the current distribution system type
// ...
}
The Autodesk.Revit.DB.Electrical.DistributionSysTypeSetIterator
class is available since Revit 2016.