Append a sync model entry to the journal.

        This instructs Revit to sync the currently open workshared model.

        Args:
            comment (str): comment to be provided for the sync step
            compact_central (bool): if True compacts the central file
            release_borrowed (bool): if True releases the borrowed elements
            release_workset (bool): if True releases the borrowed worksets
            save_local (bool): if True saves the local file as well

def sync_model(self, comment='', compact_central=False,
                   release_borrowed=True, release_workset=True,
                   save_local=False):
        """Append a sync model entry to the journal.

        This instructs Revit to sync the currently open workshared model.

        Args:
            comment (str): comment to be provided for the sync step
            compact_central (bool): if True compacts the central file
            release_borrowed (bool): if True releases the borrowed elements
            release_workset (bool): if True releases the borrowed worksets
            save_local (bool): if True saves the local file as well
        """
        self._add_entry(templates.FILE_SYNC_START)

        if compact_central:
            self._add_entry(templates.FILE_SYNC_COMPACT)
        if release_borrowed:
            self._add_entry(templates.FILE_SYNC_RELEASE_BORROWED)
        if release_workset:
            self._add_entry(templates.FILE_SYNC_RELEASE_USERWORKSETS)
        if save_local:
            self._add_entry(templates.FILE_SYNC_RELEASE_SAVELOCAL)

        self._add_entry(templates.FILE_SYNC_COMMENT_OK
                                 .format(sync_comment=comment))