Model > Look
Exit Presentation
Leaves Presentation Mode and puts the ribbon, panels, window size and background back from anywhere.
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/Exit_Presentation.nobutton/bundle.yamlModel.tab/Look.panel/Exit_Presentation.nobutton/icon.dark.pngModel.tab/Look.panel/Exit_Presentation.nobutton/icon.pngModel.tab/Look.panel/Exit_Presentation.nobutton/icon.small.dark.pngModel.tab/Look.panel/Exit_Presentation.nobutton/icon.small.pngModel.tab/Look.panel/Exit_Presentation.nobutton/script.py
Install
- Only this tool. In Navisworks, click pyNavis > Playground, search for Exit Presentation, tick it and click Install.
- The whole extension. Download
Playground.extension.zip, unzip it, put thePlayground.extensionfolder in%APPDATA%\pyNavis\extensions\, and click pyNavis > Reload. Exit Presentation 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.
ReportSource
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/Exit_Presentation.nobutton/script.py View on GitHub"""Leaves Presentation Mode from anywhere and puts the ribbon, panels, window and background back."""
from namo import presentation
from pynavis import toast
if presentation.is_on():
restored, problems = presentation.leave()
level, message, detail = presentation.exit_message(restored, problems)
toast.show(level, message, detail)
else:
toast.info('Presentation mode is not on', 'Nothing to put back.')
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.
bundle.yaml
The bundle contract: the keys pyNavis reads for this tool.
Model.tab/Look.panel/Exit_Presentation.nobutton/bundle.yaml View on GitHubtitle: Exit Presentation
tooltip: Leaves Presentation Mode and puts the ribbon, panels, window size and background back from anywhere.
shortcut: Ctrl+Alt+F11