ansys.mapdl.core.Mapdl.focus#

Mapdl.focus(wn='', xf='', yf='', zf='', ktrans='', **kwargs)#

Specifies the focus point (center of the window).

Mechanical APDL Command: /FOCUS

Parameters:
wnstr

Window number (or ALL) to which command applies (defaults to 1).

xfstr

Location of the object to be at the focus point (center of the window) in the global Cartesian coordinate system. If XF = AUTO, allow automatic location calculation. If XF = USER, use focus location of last display (useful when last display had auto focus).

yfstr

Location of the object to be at the focus point (center of the window) in the global Cartesian coordinate system. If XF = AUTO, allow automatic location calculation. If XF = USER, use focus location of last display (useful when last display had auto focus).

zfstr

Location of the object to be at the focus point (center of the window) in the global Cartesian coordinate system. If XF = AUTO, allow automatic location calculation. If XF = USER, use focus location of last display (useful when last display had auto focus).

ktransint or str

Translate key:

  • 0 - Interpret numerical XF, YF, ZF values as described above.

  • 1 - Interpret XF, YF, ZF values as multiples of half-screens to translate from the current position in the screen coordinate system. Example: XF of 2.4 translates the display approximately 2.4 half-screens to the left in the screen X (horizontal) direction.

  • 2 - Interpret XF, YF, ZF values as multiples of half-screens to translate from the current position in the global Cartesian coordinate system. Example: XF of 1.5 translates the display approximately 1.5 half-screens in the global Cartesian X direction of the model.

Notes

Specifies the location on (or off) the model which is to be located at the focus point (center of the window). For section and capped displays, the cutting plane is also assumed to pass through this location (unless the working plane is used via cplane ). See also auto and NumPy user guide commands.

This command is valid in any processor.