def set_cur_model(client, model, drawing=None):
    """Set the active model on a drawing.

    Args:
        client (obj):
            creopyson Client
        model (str):
            Model name.
        drawing (str, optional):
            Drawing name. Defaults: current active drawing.

    Returns:
        None

    """
    data = {"model": model}
    if drawing:
        data["drawing"] = drawing
    return client._creoson_post("drawing", "set_cur_model", data)