Dev > Reports

Report Templates

Every saved template of every Playground report in one list, to run without dialogs, edit, duplicate, delete, export or import. Reports not built yet show as unavailable.

Tab and panelDev > Reports
KindButton
Live whenA model is open

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.

  • Dev.tab/Reports.panel/Report_Templates.pushbutton/bundle.yaml
  • Dev.tab/Reports.panel/Report_Templates.pushbutton/icon.dark.png
  • Dev.tab/Reports.panel/Report_Templates.pushbutton/icon.png
  • Dev.tab/Reports.panel/Report_Templates.pushbutton/icon.small.dark.png
  • Dev.tab/Reports.panel/Report_Templates.pushbutton/icon.small.png
  • Dev.tab/Reports.panel/Report_Templates.pushbutton/script.py

Install

  1. Only this tool. In Navisworks, click pyNavis > Playground, search for Report Templates, 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. Report Templates is on the Dev tab, Reports 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.

Dev.tab/Reports.panel/Report_Templates.pushbutton/script.py View on GitHub
# -*- coding: utf-8 -*-
"""Lists every saved template of every Playground report and runs, edits, duplicates, deletes, exports or imports them."""
from pynavis import doc as nwdoc

from namo import reportrunner, xchg_common

if not xchg_common.under_runner():
    reportrunner.open_window(nwdoc.get_doc())

Library modules this tool uses

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

  • namo.reportrunnerReport Templates: every saved template of every Playground report in one list, forms generated from each report's default_config(), and the one runner both the ribbon and Scheduled Reports use.
  • namo.xchg_commonSmall pieces the Geometry and IFC exporters share: where files go, default names, and the list of skipped objects in the output window.

bundle.yaml

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

Dev.tab/Reports.panel/Report_Templates.pushbutton/bundle.yaml View on GitHub
title: Report\nTemplates
tooltip: Every saved template of every Playground report in one list, to run without dialogs, edit, duplicate, delete, export or import. Reports not built yet show as unavailable.
context: doc