SetServiceGroupExclusions Method


Sets the service group exclusions, used by Route and Fill or Design to Fabrication commands, for the current user and session only. This will alter them from the default configuration exclusions to only exclude those groups passed.

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

Syntax

C#
public bool SetServiceGroupExclusions(
	IList<int> excludedGroups
)
Visual Basic
Public Function SetServiceGroupExclusions ( _
	excludedGroups As IList(Of Integer) _
) As Boolean
Visual C++
public:
bool SetServiceGroupExclusions(
	IList<int>^ excludedGroups
)

Parameters

excludedGroups
Type: System.Collections.Generic IList Int32
A list of service group indexes to be excluded.

Return Value

Returns true if succeeded to set the exclusions to the specified group(s).

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions ArgumentOutOfRangeException groupIndices contains an index that is not larger or equal to 0 and less than GroupCount
Autodesk.Revit.Exceptions DisabledDisciplineException None of the following disciplines is enabled: Mechanical Electrical Piping.

See Also