RoutingPreferenceManager
Description:
Manages default pipe segments, fittings, and selection criteria for a given MEPCurveType
Manages default pipe segments, fittings, and selection criteria for a given MEPCurveType
Remarks:
MEPCurveTypes contain a RoutingPreferenceManager property. The RoutingPreferenceManager contains rules for selecting segment types and sizes as well as fitting types based on user selection criteria.
MEPCurveTypes contain a RoutingPreferenceManager property. The RoutingPreferenceManager contains rules for selecting segment types and sizes as well as fitting types based on user selection criteria.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.RoutingPreferenceManager
System.Object
Autodesk.Revit.DB.RoutingPreferenceManager
public class RoutingPreferenceManager : IDisposable
| Name | Return Type | Description |
|---|---|---|
| AddRule(RoutingPreferenceRuleGroupType, RoutingPreferenceRule) | None | Adds a new routing preference rule to the rule group. |
| AddRule(RoutingPreferenceRuleGroupType, RoutingPreferenceRule, Int32) | None | Adds a new routing preference rule to the specified position in the rule group. |
| Dispose() | None | Releases all resources used by the |
| GetMEPPartId(RoutingPreferenceRuleGroupType, RoutingConditions) | ElementId | Gets a fitting or segment id of given routing preference group that meets the specified routing conditions. |
| GetNumberOfRules(RoutingPreferenceRuleGroupType) | int | The number of RoutingPreference rules in a group. |
| GetRule(RoutingPreferenceRuleGroupType, Int32) | RoutingPreferenceRule | Gets the specified rule. |
| GetSharedSizes(Double, ConnectorProfileType) | IList<ElementId> | Gets a list of all segments of a given profile shape that define a given size. |
| RemoveRule(RoutingPreferenceRuleGroupType, Int32) | None | Removes an existing routing preference rule. Thrown if the index is out of bounds. |
| Name | Return Type | Description |
|---|---|---|
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| OwnerId | ElementId | The Id of the MEPCurveType that owns the RoutingPreferenceManager |
| PreferredJunctionType | PreferredJunctionType | The preferred junction type. |