WorkspaceLayout#
- class ansys.result_explorer.core.WorkspaceLayout(placements: list[ViewportPlacement], rows: int, cols: int)#
Describes how viewports are arranged in a workspace.
Every layout is described as a grid of rows and columns. Viewports that are not part of a regular grid span several rows or columns.
Examples
Print the arrangement of the viewports in a workspace.
>>> print(workspace.layout)
Methods
Return a diagram of the viewport arrangement.
WorkspaceLayout.placement_of(viewport)Return the placement of a viewport.
WorkspaceLayout.viewport_at(row, column)Return the viewport occupying a grid cell.
Attributes
Number of rows and columns spanned by the layout.
Whether every viewport occupies exactly one cell.
Placement of each viewport, ordered from top to bottom and left to right.