2025 Class
Changes 5
C

MEPNetworkIterator

Description:
An iterator to traverse the MEP analytical network.
Remarks:
The iterator will visit the entire MEP analytical network in the depth-first order. For evert next step, one analytical node and one analytical segment are typically visited. Sometimes an extra node is provided if the iteration reaches the end on one side and restarts at the previous intersect node. Also note that the start step may not contain any segment.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Analysis.MEPNetworkIterator
public class MEPNetworkIterator : IDisposable
// Create a new MEPNetworkIterator to traverse a piping network in the depth-first order.
int segmentCount = 0;
MEPNetworkIterator netIter = new MEPNetworkIterator(doc, modelData, ConnectorDomainType.Piping);
for(netIter.Start(); !netIter.End(); netIter.Next())
{
   MEPAnalyticalSegment segment = netIter.GetAnalyticalSegment();
   if (segment != null)
      segmentCount++;
}
Name Return Type Description Inherited From
C MEPNetworkIterator(Document, MEPAnalyticalSegment) None Creates an iterator to visit the connected segments on both sides.
C MEPNetworkIterator(Document, MEPAnalyticalModelData, ConnectorDomainType) None Creates an iterator by the analytical model data to visit all connected components in the network.
C MEPNetworkIterator(Document, MEPAnalyticalNode, MEPAnalyticalSegment) None Creates an iterator to visit the connected segments on one side of the network.
Name Return Type Description Inherited From
M Dispose() None Releases all resources used by the MEPNetworkIterator
M End() Boolean Checks if the network iteration has completed.
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetAnalyticalModelData() MEPAnalyticalModelData Gets the analytical model data at the current iteration step.
M GetAnalyticalNode() MEPAnalyticalNode Gets the analytical node at the current iteration step.
M GetAnalyticalSegment() MEPAnalyticalSegment Gets the analytical segment at the current iteration step.
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetOtherAnalyticalNode() MEPAnalyticalNode Gets the other analytical node at the current iteration step.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M Next() None Moves this iterator to the next step of network iteration.
M Start() None Gets the first step of network iteration.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P CurrentElementId ElementId The element id at the current iteration step.
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.
P SystemClassification MEPSystemClassification The optional MEP system classification where the iterations are restricted.
P SystemId ElementId The optional MEP system element id where the iterations are restricted.