Changes the service of the selection of fabrication parts.
Namespace: Autodesk.Revit.DB.Fabrication
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2020
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- selection
- Type: System.Collections.GenericISetElementId
The set of element identifiers of fabrication parts to change the service for.
- serviceId
- Type: SystemInt32
The identifier of the fabrication service.
- paletteId
- Type: SystemInt32
The identifier of the fabrication palette.
- restrictPalette
- Type: SystemBoolean
Restrict the placement of parts to the passed in palette identifier.
Remarks
After this method has been invoked, call:
- GetStraightsThatWereNotChanged to get a set of fabrication part straight element identifiers that were not changed.
- GetElementsThatFailed to get a set of fabrication part element identifiers that had failures.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | The selection contains invalid elements to change. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |
Autodesk.Revit.ExceptionsInvalidOperationException | No fabrication configuration is loaded. |