Skip to content

IControllableDropHandler.CanExecute

Public Class

Implement this method to inform Revit whether the drop event can be executed onto the given view.

Namespace: Autodesk.Revit.UI

Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

bool CanExecute(
UIDocument document,
Object data,
ElementId dropViewId
)

Parameters

document UIDocument

The document on which the data was dropped.

dataObject

The data.

dropViewId ElementId

The view upon which the user will drop.

Return Value

Boolean
Return true to activate the target view and execute the drop. Return false to cancel the activation and the drop execution.

Remarks

Document modifications are not permitted from this callback.