def METHOD_NAME(self, n: int, lfrac: float) -> float:
    """X-coordinate of line ``n`` at length fraction ``lfrac``.
    Fetches X-coordinate of line ``n`` at ``lfrac`` times the line
    length along the line. ``0. <= lfrac <= 1.``.
    Parameters
    ----------
    n : int
        The line number of the line to be considered.
    lfrac: float
        The fraction of the length of the line along which to
        enquire. ``0. <= lfrac <= 1.``
    Returns
    -------
    float
        The X-coordinate.
    Examples
    --------
    Here we construct a line between the coordinates ``(0, 0, 0)``
    and ``(1, 2, 3)`` then find the X-coordinate halfway along the line.
    >>> from ansys.mapdl.core import launch_mapdl
    >>> mapdl = launch_mapdl()
    >>> mapdl.prep7()
    >>> k0 = mapdl.k(1, 0, 0, 0)
    >>> k1 = mapdl.k(2, 1, 2, 3)
    >>> l0 = mapdl.l(k0, k1)
    >>> q = mapdl.queries
    >>> q.lx(l0, 0.5)
    0.5
    """
    return self._run_query(f"LX({n}, {lfrac})", integer=False)