Returns the given detail elements according to the currently specified draw order for the detail elements in a given view.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2024
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- view
- Type: Autodesk.Revit.DBView
The view in which the details appear.
- detailIdsToSort
- Type: System.Collections.GenericISetElementId
The detail to be sorted by draw order.
Return Value
The detail ids sorted from back to front, with earlier elements drawing first and appearing under later elements.Remarks
The sort order is from back to front, with earlier elements drawing first and appearing under later elements.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | The document does not support detail draw order. Only projects and 3d families support draw order. 2d families and in-place families do not support draw order. -or- detailIdsToSort is empty or it contains elements are not visible in the view. -or- detailIdsToSort is empty or it contains elements that do not participate in detail draw ordering. Details must be visible in the view. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |