from abaqusConstants import *
from ..Odb.Odb import Odb

"""This command writes a free body output report to a file. 

"""


def writeFreeBodyRepor(
    fileName: str,
    append: Boolean,
    step: int = None,
    frame: int = None,
    stepFrame: SymbolicConstant = SPECIFY,
    odb: Odb = None,
):
    """This method writes a FreeBody object to a user-defined ASCII file.

    Notes
    -----
        This function can be accessed by:

        .. code-block:: python

            session.writeFreeBodyReport

    Parameters
    ----------
    fileName
        A String specifying the name of the file to which the free body output will be written.
    append
        A Boolean specifying whether to append the free body output to an existing file. The
        default value is ON.
    step
        An Int identifying the step from which to obtain values. The default value is the
        current step.
    frame
        An Int identifying the frame from which to obtain values. The default value is the
        current frame.
    stepFrame
        A SymbolicConstant indicating whether to obtain the values from the specified frame or
        from all active frames. Possible values are SPECIFY and ALL. The default value is
        SPECIFY.
    odb
        An :py:class:`~abaqus.Odb.Odb.Odb` object specifying the output database from which data will be read.

    Returns
    -------
    """
    pass
