OverrideServiceButtonExclusion Method


Overrides the default service button exclusions, used by Route and Fill, Design to Fabrication, or Multi Point Routing for the current user and session only.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2017 Subscription Update

Syntax

C#
public void OverrideServiceButtonExclusion(
	int paletteIndex,
	int buttonIndex,
	bool exclude
)
Visual Basic
Public Sub OverrideServiceButtonExclusion ( _
	paletteIndex As Integer, _
	buttonIndex As Integer, _
	exclude As Boolean _
)
Visual C++
public:
void OverrideServiceButtonExclusion(
	int paletteIndex, 
	int buttonIndex, 
	bool exclude
)

Parameters

paletteIndex
Type: SystemInt32
The index of the service palette to exclude the service button from.
buttonIndex
Type: SystemInt32
The index of the service button to exclude.
exclude
Type: SystemBoolean
Pass true to exclude from being used by Route and Fill or Design to Fabrication.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The index paletteIndex is not larger or equal to 0 and less than PaletteCount.
Autodesk.Revit.ExceptionsDisabledDisciplineException None of the following disciplines is enabled: Mechanical Electrical Piping.

See Also