CanCategoryBeDisplaced Method


Displacement Element Can Category Be Displaced Method

Indicates whether elements of the specified category are eligible as displaced elements.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool CanCategoryBeDisplaced(
	ElementId categoryId
)

Parameters

categoryId ElementId
Category id of element to be replaced.

Return Value

Boolean
Returns true if elements of this category can be displaced, and false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
Remarks
Elements may be disallowed as displaced elements for reasons other than their category.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →