## FrameSelection

### Introduced

v1.5

### Description

Frames the selection in one or all the 3D views (in the view manager).
Note: To simply center the selection without zooming in on it, use the CenterSelection command.

### Scripting Syntax

    FrameSelection( [AllObjects], [AllViews], [View] );

### Parameters

Parameter | Type | Description
--- | --- | ---
AllObjects | Boolean | True to frame all objects. If this parameter is set to true, the selection is ignored. Default Value: False
AllViews | Boolean | True to reset all views at once. If this parameter is set to true, the View parameter is ignored. Default Value: True
View | Integer | Viewport in which to frame the selection. You must set the AllViews parameter to false in order to affect only this viewport. Default Value: -1 (current viewport)
Possible Values: | Description:
-1 | Current viewport
0 | Viewport A
1 | Viewport B
2 | Viewport C
3 | Viewport D

### See Also

FrameAll