Views > Navigate
Clear Spots
Removes the Coordinate Spotter markers from the view and starts the numbering again at P1.
Status
Launched Ran inside Navisworks at least once with no error logged; nobody checked the result yet.
The public ask
No public source is on record for this tool.
Installs with
Clear Spots sits in a stack, so installing it also installs:
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/Spotter.stack/Clear_Spots.pushbutton/bundle.yamlViews.tab/Navigate.panel/Spotter.stack/Clear_Spots.pushbutton/icon.dark.pngViews.tab/Navigate.panel/Spotter.stack/Clear_Spots.pushbutton/icon.pngViews.tab/Navigate.panel/Spotter.stack/Clear_Spots.pushbutton/icon.small.dark.pngViews.tab/Navigate.panel/Spotter.stack/Clear_Spots.pushbutton/icon.small.pngViews.tab/Navigate.panel/Spotter.stack/Clear_Spots.pushbutton/script.py
Install
- Only this tool. In Navisworks, click pyNavis > Playground, search for Clear Spots, 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. Clear Spots 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/Spotter.stack/Clear_Spots.pushbutton/script.py View on GitHub"""Removes the Coordinate Spotter markers from the view and starts the numbering again."""
from namo import spotter, vp_common
from pynavis import toast
count = spotter.clear()
if count:
toast.success('Cleared %s' % vp_common.plural(count, 'spot'))
else:
toast.info('No spots to clear', 'Coordinate Spotter drops them where you click.')
Library modules this tool uses
From the shared namo library, which installs with every tool. Each name opens the module on GitHub.
namo.spotterCoordinate Spotter: numbered coordinate markers dropped by clicking, a table of them, and Clear Spots.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/Spotter.stack/Clear_Spots.pushbutton/bundle.yaml View on GitHubtitle: Clear Spots
tooltip: Removes the Coordinate Spotter markers from the view and starts the numbering again at P1.