2022 Class
Changes 0
C

RoutingPreferenceManager

Description:
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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.RoutingPreferenceManager
public class RoutingPreferenceManager : IDisposable
Name Return Type Description
M AddRule(RoutingPreferenceRuleGroupType, RoutingPreferenceRule) None Adds a new routing preference rule to the rule group.
M AddRule(RoutingPreferenceRuleGroupType, RoutingPreferenceRule, Int32) None Adds a new routing preference rule to the specified position in the rule group.
M Dispose() None Releases all resources used by the
M GetMEPPartId(RoutingPreferenceRuleGroupType, RoutingConditions) ElementId Gets a fitting or segment id of given routing preference group that meets the specified routing conditions.
M GetNumberOfRules(RoutingPreferenceRuleGroupType) int The number of RoutingPreference rules in a group.
M GetRule(RoutingPreferenceRuleGroupType, Int32) RoutingPreferenceRule Gets the specified rule.
M GetSharedSizes(Double, ConnectorProfileType) IList<ElementId> Gets a list of all segments of a given profile shape that define a given size.
M RemoveRule(RoutingPreferenceRuleGroupType, Int32) None Removes an existing routing preference rule. Thrown if the index is out of bounds.
Name Return Type Description
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P OwnerId ElementId The Id of the MEPCurveType that owns the RoutingPreferenceManager
P PreferredJunctionType PreferredJunctionType The preferred junction type.