IControllableDropHandler.CanExecute
Description:
Implement this method to inform Revit whether the drop event can be executed onto the given view.
Implement this method to inform Revit whether the drop event can be executed onto the given view.
Remarks:
Document modifications are not permitted from this callback.
Document modifications are not permitted from this callback.
bool CanExecute(
UIDocument document,
Object data,
ElementId dropViewId
)
-
documentThe document on which the data was dropped.
-
ObjectdataThe data.
-
dropViewIdThe view upon which the user will drop.
Return Value
bool
Return true to activate the target view and execute the drop.
Return false to cancel the activation and the drop execution.