SetNextAvailableSize(Double, ISet<MEPSize>) Method


Sizing Options Set Next Available Size(Double, ISet MEPSize ) Method

Sets the next available size based on the specified inner diameter.

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public void SetNextAvailableSize(
	double innerDiameter,
	ISet<MEPSize> availableSizes
)

Parameters

innerDiameter Double
The inner diameter threshold that the next available size must exceed.
availableSizes ISet MEPSize
The sorted list of available sizes, where the smallest possible size yet larger than the specified inner diameter will be selected.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
ArgumentOutOfRangeException The given value for innerDiameter must be positive. -or- The innerDiameter must be within the range of availableSizes.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →