view_recall#

view_transf.view_recall(p0: str) int#

View the model from a standard (or customized) view position.

The F5, F6, F7 views have standard right, top, and front views for a default. These can be altered by the user using the “view_transf: view_store” command. Since transformations can be different per viewport, this can be set for each viewport, thus a viewport selection is needed if more than one viewport is being used.
Args:
p0:

‘option’

  • F5

  • F6

  • F7

  • F8

  • +X

  • +Y

  • +Z

  • -X

  • -Y

  • -Z

Examples:
# 
# Select viewport for which you wish 
# to modify the view 
# 
ensight.viewport.select_begin(1)
ensight.view_transf.view_recall("F5")
# 
# Selecting a different viewport 
# to show another example 
# 
ensight.viewport.select_begin(2)
ensight.view_transf.view_recall("+Y")
Returns:

zero on success, non-zero on error