kx#
- Query.kx(k)#
Return the x coordinate of a keypont.
X-coordinate of keypoint
kin the active coordinate system.- Parameters:
- k
int Keypoint number to be considered.
- k
- Returns:
floatCoordinate of the keypoint.
- Return type:
Examples
Here we add a single keypoint, then use
kxto 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