ansys.mapdl.core.Mapdl.view#

Mapdl.view(wn='', xv='', yv='', zv='', **kwargs)#

Defines the viewing direction for the display.

Mechanical APDL Command: /VIEW

Parameters:
wnstr

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

xvstr

The object is viewed along the line from point XV, YV, ZV (in the global coordinate system) to the global coordinate system origin. For section displays, the cutting plane is assumed to be perpendicular to this line. If XV = WP, modify view to be normal to the currently defined working plane. Defaults to (0,0,1).

yvstr

The object is viewed along the line from point XV, YV, ZV (in the global coordinate system) to the global coordinate system origin. For section displays, the cutting plane is assumed to be perpendicular to this line. If XV = WP, modify view to be normal to the currently defined working plane. Defaults to (0,0,1).

zvstr

The object is viewed along the line from point XV, YV, ZV (in the global coordinate system) to the global coordinate system origin. For section displays, the cutting plane is assumed to be perpendicular to this line. If XV = WP, modify view to be normal to the currently defined working plane. Defaults to (0,0,1).

Notes

The view line is always normal to the screen. The view is selected by defining a point (in the global Cartesian coordinate system) representing a point along the viewing line. This point, and the global Cartesian coordinate system origin, define the line along which the object is viewed while looking toward the origin. Any point along the view line may be used, that is, (1,1,1) and (2,2,2) give the same view. The display orientation may be changed as desired ( angle ). The display coordinate system type may be changed (from Cartesian to cylindrical, spherical, toroidal, etc.) with the dsys command.

This command is valid in any processor.