GetMEPPartId Method


Routing Preference Manager Get MEPPart Id Method

Gets a fitting or segment id of given routing preference group that meets the specified routing conditions.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ElementId GetMEPPartId(
	RoutingPreferenceRuleGroupType groupType,
	RoutingConditions conditions
)

Parameters

groupType RoutingPreferenceRuleGroupType
The routing preference group
conditions RoutingConditions
A set of routing conditions

Return Value

ElementId
The Id of the fitting or segment that met the given routing conditions.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →