RVTDocs.com

PickBox

Method
Description:
Invokes a general purpose two-click editor that lets the user to specify a rectangular area on the screen.
Remarks:
The method starts an editor and returns when it finishes. Returns a PickedBox that contains two XYZ points.
Syntax
public PickedBox PickBox(
	PickBoxStyle style
)
Parameters
Parameter Type Description
style Autodesk.Revit.UI.Selection.PickBoxStyle the value that controls the style of the pick box.
Return Value
Type Description
Autodesk.Revit.Exceptions.ArgumentOutOfRangeException The picked box that contains two XYZ points.
Exceptions
Exception Condition
Autodesk.Revit.Exceptions.ArgumentOutOfRangeException Thrown when the style is not a recognized value.
Autodesk.Revit.Exceptions.OperationCanceledException Thrown when the Revit user cancelled this operation. Thrown when the Revit user tried to switch the active view, close the active document or Revit application when responding to this mode.