kx#

Query.kx(k)[source]#

Return the x coordinate of a keypont.

X-coordinate of keypoint k in the active coordinate system.

Parameters:
kint

Keypoint number to be considered.

Returns:
float

Coordinate of the keypoint.

Return type:

float

Examples

Here we add a single keypoint, then use kx to extract the x-coordinate of it.

>>> from ansys.mapdl.core import launch_mapdl
>>> mapdl = launch_mapdl()
>>> mapdl.prep7()
>>> mapdl.k(1, 0, 1, 2)
>>> mapdl.queries.kx(1)
0.0