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:
- wn
str
Window number (or ALL) to which command applies (defaults to 1).
- xf
str
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. IfXF
= USER, use focus location of last display (useful when last display had auto focus).- yf
str
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. IfXF
= USER, use focus location of last display (useful when last display had auto focus).- zf
str
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. IfXF
= USER, use focus location of last display (useful when last display had auto focus).- ktrans
int
orstr
Translate key:
0
- Interpret numericalXF
,YF
,ZF
values as described above.1
- InterpretXF
,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
- InterpretXF
,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.
- wn
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.