RoutingPreferenceManager.GetMEPPartId
Method
Description:
Gets a fitting or segment id of given routing preference group that meets the specified routing conditions.
Gets a fitting or segment id of given routing preference group that meets the specified routing conditions.
Syntax
public ElementId GetMEPPartId(
RoutingPreferenceRuleGroupType groupType,
RoutingConditions conditions
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| groupType | RoutingPreferenceRuleGroupType | The routing preference group |
| conditions | RoutingConditions | A set of routing conditions |
Return Value
| Type | Description |
|---|---|
| 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 |