RVTDocs.com

DoubleClickOptions.SetAction

Method
Description:
Changes the double-click action associated with a specified target.
Remarks:
This change will be stored in the user's profile and will affect future sessions of Revit in addition to the current session.
Syntax
public void SetAction(
	DoubleClickTarget target,
	DoubleClickAction action
)
Parameters
Parameter Type Description
target DoubleClickTarget The double-click target whose action will be changed.
action DoubleClickAction The action to assign to the target.
Return Value
Exceptions
Exception Condition
ArgumentException The specified action is not valid for the target element.
ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration