AI (beta) panel
Open AI Folder
Explorer on the folder where Ask AI writes its tools.
On the ribbonStacked button, AI (beta) panel
NeedsAt least one tool created
What it does#
Opens %APPDATA%\pyNavis\extensions\AI.extension\AI.tab\Generated.panel in
Explorer. Every generated tool is an ordinary bundle folder there: read it, edit it, copy it
into your own extension, or delete it. Before the first tool exists it says so instead of
opening an empty window.
Good to know#
Deleting a tool's folder and clicking Reload removes it from the ribbon. Renaming the folder changes its bundle key, so a shortcut bound to it in the Shortcuts editor would need rebinding.
Source#
The tool's own files, word for word as shipped in AI_(beta).panel/Setup.stack/Open_AI_Folder.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# -*- coding: utf-8 -*-
"""Shows the generated-tools extension in Explorer.
Ask AI writes every tool into AI.extension under the per-user extensions
folder. Until the first tool is created there is nothing to show, and saying
so beats opening an empty Explorer window.
"""
import clr
import os
clr.AddReference('PyNavis.Runtime')
from PyNavis.Runtime.Ai import GeneratedExtensionWriter
from pynavis import script, toast
root = GeneratedExtensionWriter.DefaultRoot
if not os.path.isdir(root):
toast.info('No AI tools yet', 'Ask AI creates this folder with your first tool')
else:
panel = os.path.join(root, GeneratedExtensionWriter.TabFolder, GeneratedExtensionWriter.PanelFolder)
script.show_in_explorer(panel if os.path.isdir(panel) else root)bundle.yaml The bundle contract: the keys pyNavis reads for this tool. View on GitHubtitle: Open AI Folder
tooltip: Opens the folder where Ask AI writes its tools, AI.extension under your pyNavis extensions, in Explorer. Every generated tool is an ordinary bundle there, so you can read it, edit it, or delete it like any other.