Selection panel

Subtract

Remove the current selection from memory.

On the ribbonStacked button, Selection panel
NeedsA selection

What it does#

Takes the current selection out of the memory. The way to carve the unwanted part out of a stored set: Recall, click the items that should not be there, Subtract.

How to use it#

  1. Recall the memory.
  2. Select only the items to drop. Click Subtract.
  3. Recall again to check.

Other uses#

  • Everything except: Remember a whole system, select the part that is finished, Subtract, and the memory is the outstanding work.

Source#

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

from pynavis import memory, toast

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