2026 Class
Changes 5
C

CriticalPathCollector

Description:
This class is used to search and traverse the network analytical segments on the critical path.
Remarks:
The critcal path is a connected flow path that has the maximum pressure loss value on the network. The associated flow and pressure loss values are often used to select the equipment size. When this collector is constructed, the network is identified by one analytical segment seed. User may get the CriticalPathIterator from the collector to traverse the analytical segment on the critical path, in the sequence of their flow direction. Note that If the network contains multiple hydraulically separated levels, the critical path traversal is focused on the same hydraulic separation level as the seed segment.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Analysis.CriticalPathCollector
public class CriticalPathCollector : IEnumerable<MEPNetworkSegmentId>, 
	IDisposable
Name Return Type Description Inherited From
C CriticalPathCollector(Document, MEPNetworkSegmentId) None Creates a new CriticalPathCollector that visits the analytical segments on the network critical path.
Name Return Type Description Inherited From
M Dispose() None Releases all resources used by the CriticalPathCollector
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetBasicIEnumerator() IEnumerator Returns an enumerator that iterates through a collection.
M GetCalculatedFlow() Double Gets the calculated flow of the network.
M GetCalculatedPressureDrop() Double Gets the calculated pressure drop of the network.
M GetCriticalPathCollectorIterator() CriticalPathIterator Gets the critical path iterator to traverse individual segment.
M GetEnumerator() IEnumerator<MEPNetworkSegmentId> Returns an enumerator that iterates through a collection.
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M ToNetworkSegmentIds() IList<MEPNetworkSegmentId> Returns the list of analytical segment ids on the network critical path.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.