Optimizes the length fabrication straight parts.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2016
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- document
- Type: Autodesk.Revit.DBDocument
The document.
- partIds
- Type: System.Collections.GenericISetElementId
The identifiers of the fabrication parts in a selected fabrication part run.
Return Value
New and modified fabrication part ids in the optimizeExceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | There are no straight parts to optimize, or all parts are locked or locked by group membership. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |
Autodesk.Revit.ExceptionsInvalidOperationException | this operation failed. |