def create(
    client,
    template,
    model=None,
    drawing=None,
    scale=None,
    display=None,
    activate=None,
    new_window=None,
):
    """Create a new drawing from a template.

    Args:
        client (obj):
            creopyson Client.
        template (str):
            Template
        model (str, optional):
            Model name. Defaults: Current active model.
        drawing (str, optional):
            New drawing name.
            Defaults: A name derived from the model's instance name.
        scale (float, optional):
            Drawing scale. Defaults is `1.0`.
        display (boolean, optional):
            Display the drawing after open. Defaults is False.
        activate (boolean, optional):
            Activate the drawing window after open. Defaults is False.
        new_window (boolean, optional):
            Open drawing in a new window. Defaults is False.

    Returns:
        (str): New drawing name.

    """
    data = {"template": template}
    if model:
        data["model"] = model
    if drawing:
        data["drawing"] = drawing
    if scale:
        data["scale"] = scale
    if display:
        data["display"] = display
    if activate:
        data["activate"] = activate
    if new_window:
        data["new_window"] = new_window
    return client._creoson_post("drawing", "create", data, "drawing")