Selection.PickBox(PickBoxStyle, String)
Method
Description:
Invokes a general purpose two-click editor that lets the user to specify a rectangular area on the screen.
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.
The method starts an editor and returns when it finishes. Returns a PickedBox that contains two XYZ points.
Parameters
Parameter | Type | Description |
---|---|---|
style | PickBoxStyle | Specifies the value that controls the style of the pick box. |
statusPrompt | String | The message shown on the status bar. |
Return Value
Type | Description |
---|---|
PickedBox | The picked box that contains two XYZ points. |
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the style is not a recognized value. |
ArgumentNullException | Thrown when the argument statusPrompt is. |
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. |