Views > Navigate
Level Down
Moves the level section to the next level down and says which level it is. Invisible on the ribbon; rebind it in the Shortcuts editor.
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
None. It runs only when you click it.
Files
Paths are relative to the Playground.extension folder.
Views.tab/Navigate.panel/Level_Down.nobutton/bundle.yamlViews.tab/Navigate.panel/Level_Down.nobutton/icon.dark.pngViews.tab/Navigate.panel/Level_Down.nobutton/icon.pngViews.tab/Navigate.panel/Level_Down.nobutton/icon.small.dark.pngViews.tab/Navigate.panel/Level_Down.nobutton/icon.small.pngViews.tab/Navigate.panel/Level_Down.nobutton/script.py
Install
- Only this tool. In Navisworks, click pyNavis > Playground, search for Level Down, 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. Level Down is on the Views tab, Navigate 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.
Views.tab/Navigate.panel/Level_Down.nobutton/script.py View on GitHub"""Moves the level section one level down (Alt+PgDn) and says which level it is on."""
from namo import levels, progress, vp_common
from pynavis import toast
document = vp_common.active_doc()
if not vp_common.has_models(document):
toast.info('No model open', 'Open or append a model first.')
else:
if levels.cached_or_none(document) is None:
outcome = progress.run('Level Down', lambda report: levels.step(-1, document, report), 'Looking for levels')
else:
outcome = levels.step(-1, document)
if outcome is not progress.CANCELLED:
toast.show(outcome[0], outcome[1], outcome[2])
Library modules this tool uses
From the shared namo library, which installs with every tool. Each name opens the module on GitHub.
namo.levelsLevels of the model, and sectioning the view at one of them.namo.progressGlue between pyNavis' cancellable progress window and Playground's progress callbacks.namo.vp_commonShared helpers for the Views tools (Viewpoints, Capture and Navigate panels).
bundle.yaml
The bundle contract: the keys pyNavis reads for this tool.
Views.tab/Navigate.panel/Level_Down.nobutton/bundle.yaml View on GitHubtitle: Level Down
tooltip: Moves the level section to the next level down and says which level it is. Invisible on the ribbon; rebind it in the Shortcuts editor.
shortcut: Alt+PgDn