RoutingPreferenceManager Class

Manages default pipe segments, fittings, and selection criteria for a given MEPCurveType
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBRoutingPreferenceManager

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class RoutingPreferenceManager : IDisposable

The RoutingPreferenceManager type exposes the following members.

Properties
 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyOwnerId The Id of the MEPCurveType that owns the RoutingPreferenceManager
Public propertyPreferredJunctionType The preferred junction type.
Top
Methods
 NameDescription
Public methodAddRule(RoutingPreferenceRuleGroupType, RoutingPreferenceRule) Adds a new routing preference rule to the rule group.
Public methodAddRule(RoutingPreferenceRuleGroupType, RoutingPreferenceRule, Int32) Adds a new routing preference rule to the specified position in the rule group.
Public methodDisposeReleases all resources used by the RoutingPreferenceManager
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetMEPPartId Gets a fitting or segment id of given routing preference group that meets the specified routing conditions.
Public methodGetNumberOfRules The number of RoutingPreference rules in a group.
Public methodGetRule Gets the specified rule.
Public methodGetSharedSizes Gets a list of all segments of a given profile shape that define a given size.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodRemoveRule Removes an existing routing preference rule. Thrown if the index is out of bounds.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
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.
See Also