Exemple #1
0
def _perform_onsessionloadcomplete_ops():
    # cleanup old assembly files.
    # asmmaker.cleanup_assembly_files() will take care of that
    cleanup_assembly_files()

    # clean up temp app files between sessions.
    cleanup_appdata_folder()
Exemple #2
0
def _perform_onsessionloadcomplete_ops():
    # cleanup old assembly files.
    asmmaker.cleanup_assembly_files()

    # clean up temp app files between sessions.
    appdata.cleanup_appdata_folder()

    # activate hooks now
    hooks.activate()

    # activate internal handlers
    # toggle doc colorizer
    revit.ui.toggle_doc_colorizer(user_config.colorize_docs)
Exemple #3
0
def _perform_onsessionloadcomplete_ops():
    # cleanup old assembly files.
    asmmaker.cleanup_assembly_files()

    # clean up temp app files between sessions.
    appdata.cleanup_appdata_folder()

    # activate hooks now
    hooks.activate()

    # activate internal handlers
    # toggle doc colorizer
    revit.ui.toggle_doc_colorizer(user_config.colorize_docs)

    # activate runtime routes server
    if user_config.routes_server:
        routes.active_routes_api()
        active_server = routes.activate_server()
        if active_server:
            mlogger.info(str(active_server))
        else:
            mlogger.error('Routes servers failed activation')