Selection panel

Add

Add the current selection to memory, keeping what was already there.

On the ribbonStacked button, Selection panel
NeedsA selection

What it does#

Unions the current selection into the memory. Use it to build up a set over several passes through a model: find some pipes on level 2, Add, find the rest on level 3, Add.

How to use it#

  1. Remember a first selection.
  2. Select more. Click Add. The toast gives the new total.
  3. Repeat, then Recall to see the whole set.

Limitations#

  • An item already in memory is not counted twice.

Source#

The tool's own files, word for word as shipped in Selection.panel/Set.stack/Add.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
"""Adds the current selection to memory."""

from pynavis import memory, toast

result = memory.add()
toast.show(result.level, result.message, result.detail)
bundle.yaml The bundle contract: the keys pyNavis reads for this tool. View on GitHub
title: Add