RVTDocs.com

IControllableDropHandler.CanExecute

Method
Description:
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.
Syntax
bool CanExecute(
	UIDocument document,
	Object data,
	ElementId dropViewId
)
Parameters
Parameter Type Description
document UIDocument The document on which the data was dropped.
data Object The data.
dropViewId ElementId The view upon which the user will drop.
Return Value
Type Description
Boolean Return true to activate the target view and execute the drop. Return false to cancel the activation and the drop execution.