2027 Method
Changes 0
M

IControllableDropHandler.CanExecute

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.
bool CanExecute(
	UIDocument document,
	Object data,
	ElementId dropViewId
)
  • document
    The document on which the data was dropped.
  • Object
    data
    The data.
  • dropViewId
    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.