2022 Class
Changes 0
C

RoutingPreferenceRule

Description:
A class representing a rule set in MEP routing preferences.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.RoutingPreferenceRule
public class RoutingPreferenceRule : IDisposable
Name Return Type Description
C RoutingPreferenceRule(ElementId, String) None Constructs a RoutingPreferenceRule containing a segment or fitting Id (MEPPartId) and description.
Name Return Type Description
M AddCriterion(RoutingCriterionBase) None Adds a new routing criterion.
M Dispose() None Releases all resources used by the
M GetCriterion(Int32) RoutingCriterionBase Gets the specified criteria.
M RemoveCriteron(Int32) None Removes an existing criterion.
Name Return Type Description
P Description string The description of the routing preference rule.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P MEPPartId ElementId 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.
P NumberOfCriteria int Gets the number of routing criteria.
P RoutingPreferenceManager RoutingPreferenceManager Gets the routing preference manager that owns this rule.