pyNavis panel

Reload

Rescan every extension folder and rebuild the ribbon, without restarting Navisworks.

On the ribbonButton, pyNavis panel
NeedsNothing

What it does#

Reads every extension folder again and rebuilds the pyNavis tab from what it finds. New bundles appear, renamed ones move, changed captions, tooltips, icons and shortcuts take effect, and each extension's startup.py runs again. Editing a tool and clicking Reload is the whole development loop.

How to use it#

  1. Change something on disk: a new folder, an edited bundle.yaml, a new icon.
  2. Click Reload. A toast says when the tab is rebuilt.
  3. Click your button. A script edit alone does not even need this: script.py is read fresh on every click.

Limitations#

  • Three things need a Navisworks restart instead: a changed engine path, a *.lib folder added or removed, and new dock panel slots.
  • Reload rebuilds pyNavis' tab only. Other add-ins are untouched.
  • Open dock panels are repainted with fresh controls; a panel that was mid-edit loses the edit.

Good to know#

Reload writes ==== pyNavis reload ==== to %APPDATA%\pyNavis\logs\pyNavis.log and then lists every bundle it skipped and why, so a button that fails to appear is one log line away from an explanation.