Model > Select
Back
Restores the selection you had before this one, like Back in a browser. After clearing the selection it brings the last one back.
Status
Untested Never executed inside Navisworks. Passed the headless checks only.
The public ask
No public source is on record for this tool.
Installs with
Back sits in a stack, so installing it also installs:
Events it listens to
It needs these Navisworks event hooks, so installing it also copies the shared hooks folder:
selection-changed
Files
Paths are relative to the Playground.extension folder.
Model.tab/Select.panel/History.stack/Back.pushbutton/bundle.yamlModel.tab/Select.panel/History.stack/Back.pushbutton/icon.dark.pngModel.tab/Select.panel/History.stack/Back.pushbutton/icon.pngModel.tab/Select.panel/History.stack/Back.pushbutton/icon.small.dark.pngModel.tab/Select.panel/History.stack/Back.pushbutton/icon.small.pngModel.tab/Select.panel/History.stack/Back.pushbutton/script.py
Install
- Only this tool. In Navisworks, click pyNavis > Playground, search for Back, 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. Back is on the Model tab, Select 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/Select.panel/History.stack/Back.pushbutton/script.py View on GitHub# -*- coding: utf-8 -*-
"""Restores the selection you had before this one."""
from pynavis import toast
from namo import sel_history
level, message, detail = sel_history.go(-1)
toast.show(level, message, detail)
Library modules this tool uses
From the shared namo library, which installs with every tool. Each name opens the module on GitHub.
namo.sel_historySelection History: every selection recorded per document, Back / Forward / History.
bundle.yaml
The bundle contract: the keys pyNavis reads for this tool.
Model.tab/Select.panel/History.stack/Back.pushbutton/bundle.yaml View on GitHubtitle: Back
tooltip: Restores the selection you had before this one, like Back in a browser. After clearing the selection it brings the last one back.
shortcut: Alt+Left
context: doc