DisplacementElementCanElementsBeDisplaced(View, ICollectionElementId, ElementId) Method

Indicates if elements can be assigned to a new DisplacementElement.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool CanElementsBeDisplaced(
	View view,
	ICollection<ElementId> elementIds,
	out ElementId commonDisplacedElementId
)

Parameters

view  View
The view.
elementIds  ICollectionElementId
The element ids.
commonDisplacedElementId  ElementId
If this method returns true, then this is the element id of a DisplacementElement which lists all of elemIds among its displaced elements.

Return Value

Boolean
Returns true if the specified element ids can be assigned to a new DisplacementElement.
Exceptions
ExceptionCondition
ArgumentNullException A non-optional argument was null
Remarks
A necessary condition is that isAllowedAsDisplacedElement returns true for each individual element id. In addition, if isElementDisplaced must return the same value for all the specified element ids.
See Also