RoutingPreferenceRule
A class representing a rule set in MEP routing preferences.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.RoutingPreferenceRule
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class RoutingPreferenceRule : IDisposableThe RoutingPreferenceRule type exposes the following members.
Constructors
Name
Description
Public Method
RoutingPreferenceRule
Constructs a RoutingPreferenceRule containing a segment or fitting Id (MEPPartId) and description.
Properties
Name
Description
Public Property
Description
The description of the routing preference rule.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
MEPPartId
The referenced MEPPart (segment or fitting) type in this rule. It may be InvalidElementId if no MEPPart will be allowed when the conditions satisfy the criteria in this rule.
Public Property
NumberOfCriteria
Gets the number of routing criteria.
Public Property
RoutingPreferenceManager
Gets the routing preference manager that owns this rule.
Methods
Name
Description
Public Method
AddCriterion
Adds a new routing criterion.
Public Method
Dispose
Releases all resources used by the RoutingPreferenceRule
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetCriterion
Gets the specified criteria.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
RemoveCriteron
Removes an existing criterion.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)