def export_connections(filepath):
    """Export connection and distance-informations

    :param str filepath: export filename

    .. note::
        * cmatrices: list of connection matrices
        * dmatrices: list of distance matrices
        * nglist: list of neural groups
        * connection_list: list of layer-based connections

    """
    cmatrices = []
    dmatrices = []
    for c in model.CONNECTION_RESULTS:
        cmatrices.append(c['c'])
        dmatrices.append(c['d'])

    mapping_names = get_mapping_names()

    with zipfile.ZipFile(filepath, 'w', zipfile.ZIP_DEFLATED) as file:
        csv_write_matrices(file, "c", cmatrices)
        csv_write_matrices(file, "d", dmatrices)
        csv_write_matrix(file, "names", mapping_names)
        csv_write_matrix(file, "connections", model.MODEL.connection_indices)
        csv_write_matrix(file, "neurongroups", model.MODEL.ng_list)