Revit 2025.3 API
Routing |
Removes an existing routing preference rule.
Thrown if the index is out of bounds.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public void RemoveRule( RoutingPreferenceRuleGroupType groupType, int index )
Public Sub RemoveRule ( groupType As RoutingPreferenceRuleGroupType, index As Integer )
public: void RemoveRule( RoutingPreferenceRuleGroupType groupType, int index )
member RemoveRule : groupType : RoutingPreferenceRuleGroupType * index : int -> unit
Parameters
- groupType RoutingPreferenceRuleGroupType
- The routing preference group type in which the rule should be removed.
- index Int32
- The index position of removed routing preference rule in the group.
| Exception | Condition |
|---|---|
| ArgumentException | index is not a valid zero-based index within groupType. -or- |
| ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
See Also