Selection panel

Remember

Store the current selection in the document's memory, replacing whatever was there.

On the ribbonButton, Selection panel
NeedsA selection (an empty one is reported, not stored)
Ctrl+Shift+M">

What it does#

Replaces the memory with the current selection and toasts how many items went in. This is the starting point for everything else on the panel.

How to use it#

  1. Select anything: a click in the view, a Find Items result, a selection set.
  2. Press Ctrl+Shift+M or click Remember.
  3. Carry on. Hide things, section, click elsewhere. The memory keeps what you had.

Limitations#

  • One memory per document. Remember replaces it; use Add to grow it instead.
  • Items are stored by their path in the model tree. If the model is republished with a different structure, some items may not resolve on Recall, and the toast will say how many.

Other uses#

  • Before a risky operation, Remember the selection so a mis-click costs nothing.
  • Remember at the end of the day; the memory is still there tomorrow.

Source#

The tool's own files, word for word as shipped in Selection.panel/Remember.pushbutton. Every pyNavis tool is an ordinary bundle: copy these into your own extension and change what you like.

script.py Runs on a click. View on GitHub
"""Stores the current selection in memory.

The memory belongs to this document and survives closing Navisworks.
"""

from pynavis import memory, toast

result = memory.memorize()
toast.show(result.level, result.message, result.detail)
bundle.yaml The bundle contract: the keys pyNavis reads for this tool. View on GitHub
title: Remember
shortcut: Ctrl+Shift+M