RoutingPreferenceManager
Manages default pipe segments, fittings, and selection criteria for a given MEPCurveType
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.RoutingPreferenceManager
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
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
OwnerId
The Id of the MEPCurveType that owns the RoutingPreferenceManager
Public Property
PreferredJunctionType
The preferred junction type.
Methods
Name
Description
Public Method
AddRule(RoutingPreferenceRuleGroupType, RoutingPreferenceRule)
Adds a new routing preference rule to the rule group.
Public Method
AddRule(RoutingPreferenceRuleGroupType, RoutingPreferenceRule, Int32)
Adds a new routing preference rule to the specified position in the rule group.
Public Method
Dispose
Releases all resources used by the RoutingPreferenceManager
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetMEPPartId
Gets a fitting or segment id of given routing preference group that meets the specified routing conditions.
Public Method
GetNumberOfRules
The number of RoutingPreference rules in a group.
Public Method
GetRule
Gets the specified rule.
Public Method
GetSharedSizes
Gets a list of all segments of a given profile shape that define a given size.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
RemoveRule
Removes an existing routing preference rule. Thrown if the index is out of bounds.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
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.