Model > Look

Presentation Mode

Clears the screen for a meeting by minimizing the ribbon to its tabs, closing add-in panels and maximizing the window. Click again or press Ctrl+Alt+F11 to put everything back. Shift+Click for settings.

Tab and panelModel > Look
KindToggle button

Status

Untested Never executed inside Navisworks. Passed the headless checks only.

The public ask

No public source is on record for this tool.

Events it listens to

It needs these Navisworks event hooks, so installing it also copies the shared hooks folder:

  • app-closing

Files

Paths are relative to the Playground.extension folder.

  • Model.tab/Look.panel/Presentation_Mode.toggle/bundle.yaml
  • Model.tab/Look.panel/Presentation_Mode.toggle/config.py
  • Model.tab/Look.panel/Presentation_Mode.toggle/icon.dark.png
  • Model.tab/Look.panel/Presentation_Mode.toggle/icon.off.dark.png
  • Model.tab/Look.panel/Presentation_Mode.toggle/icon.off.png
  • Model.tab/Look.panel/Presentation_Mode.toggle/icon.on.dark.png
  • Model.tab/Look.panel/Presentation_Mode.toggle/icon.on.png
  • Model.tab/Look.panel/Presentation_Mode.toggle/icon.png
  • Model.tab/Look.panel/Presentation_Mode.toggle/icon.small.dark.png
  • Model.tab/Look.panel/Presentation_Mode.toggle/icon.small.png
  • Model.tab/Look.panel/Presentation_Mode.toggle/script.py

Install

  1. Only this tool. In Navisworks, click pyNavis > Playground, search for Presentation Mode, tick it and click Install.
  2. The whole extension. Download Playground.extension.zip, unzip it, put the Playground.extension folder in %APPDATA%\pyNavis\extensions\, and click pyNavis > Reload. Presentation Mode is on the Model tab, Look panel.

You need pyNavis 1.3.0 or later.

Tried it? Tell us whether it worked or not. That report is what moves a tool up the status ladder.

Report

Source

The tool's own files, word for word as published in pynavis/Playground. Paths are relative to the Playground.extension folder.

script.py

The script that runs on a click.

Model.tab/Look.panel/Presentation_Mode.toggle/script.py View on GitHub
"""Turns Presentation Mode on (ribbon minimized, panels closed, window maximized) or puts everything back."""
from namo import presentation
from pynavis import script, toast


def run():
    if presentation.is_on():
        restored, problems = presentation.leave()
        script.set_toggle_state(False)
        level, message, detail = presentation.exit_message(restored, problems)
        toast.show(level, message, detail)
        return
    if script.get_toggle_state():
        script.set_toggle_state(False)        # left through Ctrl+Alt+F11: only the button was behind
        toast.info('Presentation mode is already off', 'Click again to start presenting.')
        return
    options = presentation.normalize_options(script.get_config(presentation.DEFAULTS))
    state, notes = presentation.enter(options)
    if not presentation.changed(state):
        presentation.leave()                    # nothing to hold: stay off
        script.set_toggle_state(False)
        message, detail = presentation.nothing_message(notes)
        toast.info(message, detail)
        return
    script.set_toggle_state(True)
    message, detail = presentation.enter_message(state, notes)
    if notes:
        toast.warning(message, detail)
    else:
        toast.success(message, detail)


run()

config.py

The Shift+Click action.

Model.tab/Look.panel/Presentation_Mode.toggle/config.py View on GitHub
"""Chooses what Presentation Mode changes besides minimizing the ribbon."""
from namo import presentation, ui
from pynavis import script, toast

options = presentation.normalize_options(script.get_config(presentation.DEFAULTS))
values = ui.form('Presentation Mode settings', presentation.option_fields(options), ok='Save')
if values is not None:                      # None means cancelled: say nothing
    options = presentation.normalize_options(values)
    script.save_config(options)
    toast.success('Saved', 'Takes effect the next time Presentation Mode starts.'
                  if presentation.is_on() else 'Click Presentation Mode to start presenting.')

Library modules this tool uses

From the shared namo library, which installs with every tool. Each name opens the module on GitHub.

  • namo.presentationPresentation Mode: a clean screen for a meeting, put back exactly afterwards.
  • namo.uiWPF building blocks for Playground tools, themed from the pyNavis design system.

bundle.yaml

The bundle contract: the keys pyNavis reads for this tool.

Model.tab/Look.panel/Presentation_Mode.toggle/bundle.yaml View on GitHub
title: Presentation\nMode
title_on: Exit\nPresentation
tooltip: Clears the screen for a meeting by minimizing the ribbon to its tabs, closing add-in panels and maximizing the window. Click again or press Ctrl+Alt+F11 to put everything back. Shift+Click for settings.
tooltip_on: Puts the ribbon, panels, window size and background back the way they were before presenting.