Viewport#
- class ansys.result_explorer.core.Viewport(pb_obj: PBType, client: Client)#
Represents a viewport in a workspace.
Methods
Hide this viewport (make it not visible in the UI).
Viewport.save_snapshot(file_path[, settings])Take a snapshot of this viewport and save it to PNG.
Viewport.set_size(size)Set the size of this viewport in the workspace layout.
Viewport.set_view(...)Assign a view to this viewport.
Show this viewport if it was previously hidden.
Viewport.take_snapshot([settings])Take a snapshot of this viewport.
Batch display options updates in a single server call.
Attributes
Read/write viewport display options.
Whether this viewport is currently hidden (not visible in the UI).
Unique identifier.
Read-only viewport metadata (server-computed state).
Whether the viewport is ready.
Size of the viewport as a percentage of its parent.
ID of the solution assigned to this viewport.
Get the assigned view, if any.
ID of the view assigned to this viewport.