Coordinate > Issues

Stamp from Template

Choose any issue template, then click where the issue goes; the click snaps like a measurement, and Esc or right-click cancels. Templates are managed in Issue Templates.

Tab and panelCoordinate > Issues
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.

  • Coordinate.tab/Issues.panel/Issue_Stamps.pulldown/Stamp_from_Template.pushbutton/bundle.yaml
  • Coordinate.tab/Issues.panel/Issue_Stamps.pulldown/Stamp_from_Template.pushbutton/icon.dark.png
  • Coordinate.tab/Issues.panel/Issue_Stamps.pulldown/Stamp_from_Template.pushbutton/icon.png
  • Coordinate.tab/Issues.panel/Issue_Stamps.pulldown/Stamp_from_Template.pushbutton/icon.small.dark.png
  • Coordinate.tab/Issues.panel/Issue_Stamps.pulldown/Stamp_from_Template.pushbutton/icon.small.png
  • Coordinate.tab/Issues.panel/Issue_Stamps.pulldown/Stamp_from_Template.pushbutton/script.py

Install

  1. Only this tool. In Navisworks, click pyNavis > Playground, search for Stamp from Template, 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. Stamp from Template is on the Coordinate tab, Issues 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.

Coordinate.tab/Issues.panel/Issue_Stamps.pulldown/Stamp_from_Template.pushbutton/script.py View on GitHub
# -*- coding: utf-8 -*-
"""Raises an issue from a template you choose, where you click."""
from namo import issue_stamps

if issue_stamps.ready() is not None:
    choice = issue_stamps.choose_template()
    if choice is not None:             # None: cancelled, say nothing
        issue_stamps.stamp(choice)

Library modules this tool uses

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

bundle.yaml

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

Coordinate.tab/Issues.panel/Issue_Stamps.pulldown/Stamp_from_Template.pushbutton/bundle.yaml View on GitHub
title: Stamp from Template
tooltip: Choose any issue template, then click where the issue goes; the click snaps like a measurement, and Esc or right-click cancels. Templates are managed in Issue Templates.
context: doc