Vis Automations · In-app tool, Automation Scripts menu
Model Inspector
A Python tool that Vis lists in its own Automation Scripts menu: it attaches to the open session, reads every part, selects the largest, retitles the view, adds a snapshot and writes a report.
Verification NOT fully passing on Vis 2606.0 build 26134 + 2606.2610 · 2026-10-29 · repo tc-vis-automation 9f1b0af · The tool, the menu launch and restart persistence work; registration by registry does not.
What was asked
Show that a tool can live inside Vis, launched from Vis itself and working on the model the user already has open, rather than only as an outside script that starts its own Vis.
What it does
- Reads the physical properties of every part in the open model.
- Selects the largest part, drawn in the selection highlight.
- Retitles the view, so the window title names the largest part.
- Adds a named snapshot and captures the view.
- Writes an HTML report and a JSON run log to
Documents\VisModelInspectorand opens the report.
Works: adding the script once through Manage Scripts, launching it from the menu, and the entry staying after Vis restarts. Does not work: registering it by writing the registry. See Open questions.