| Revit Preview Release API |
| DisplacementElement..::..SetDisplacedElementIds Method |
| DisplacementElement Class See Also |
Sets the ids of the elements affected by this DisplacementElement.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 19.0.0.0 (19.0.0.405)
Since:
2014
Syntax
| C# |
|---|
public void SetDisplacedElementIds( ICollection<ElementId> displacedElemIds ) |
| Visual Basic |
|---|
Public Sub SetDisplacedElementIds ( _ displacedElemIds As ICollection(Of ElementId) _ ) |
| Visual C++ |
|---|
public: void SetDisplacedElementIds( ICollection<ElementId^>^ displacedElemIds ) |
Parameters
- displacedElemIds
- Type: System.Collections.Generic..::..ICollection<(Of <(<'ElementId>)>)>
Set of ids of elements to be displaced by this DisplacementElement.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | For each individual element in the set displacedElemIds, isAllowedAsDisplacedElement must return true, and the elements must not already be displaced in the specified view. |
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |