Selection panel

Forget

Empty the memory for this document.

On the ribbonStacked button, Selection panel
NeedsNothing

What it does#

Empties the memory for this document and reports how many items were dropped. Other documents keep theirs.

Good to know#

You rarely need this: Remember replaces the memory anyway. It is there for the moment you want to be certain nothing is stored, and for tidying up after a job. To delete the stored files for every document at once, use Purge in the More menu.

Source#

The tool's own files, word for word as shipped in Selection.panel/Step.stack/Forget.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
"""Empties the memory for this document."""

from pynavis import memory, toast

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