How asdubewar/pynavis works
pyNavis is a Navisworks add-in for running Python tools exposed through a reloadable, folder-defined ribbon. Users invoke a bundle by button, shortcut, hook, or startup action; the runtime selects a Python engine and executes its script against Navisworks, with the pynavis library providing domain helpers and UI. Bundled tools cover selection, clashes, viewpoints, data export, and AI-assisted authoring. The README documents the main capabilities; source excerpts are selective, so links for unsampled feature internals are limited to documented relationships.
Main entry points: ScriptExecutor.cs Script execution · pynavis pynavis API · AiSession.cs AI authoring session · Ribbon Ribbon and shortcuts
Components 20
Bundles and runtime
- Extension bundles
extensions/pyNavis.extension - Ribbon and shortcuts
src/PyNavis.Runtime/Ribbon - Script execution
src/PyNavis.Runtime/Execution/ScriptExecutor.cs - Python engines
src/PyNavis.Runtime/Engine/EngineManager.cs - Hooks and startup
src/PyNavis.Runtime/Events - Dock panels
src/PyNavis.Runtime/Panes
Python library
- pynavis API
pynavislib/pynavis
Navisworks tools
- Selection and sets
pynavislib/pynavis/sets.py - Clash tools
extensions/pyNavis.extension/pyNavis.tab/Clash.panel - Viewpoint tools
extensions/pyNavis.extension/pyNavis.tab/Viewpoints.panel - Data and exports
extensions/pyNavis.extension/pyNavis.tab/Data.panel - Python playground
extensions/pyNavis.extension/lib/playground.py
AI authoring
- AI chat panel
src/PyNavis.Runtime/Forms/AiChatPane.cs - AI authoring session
src/PyNavis.Runtime/Ai/AiSession.cs - Generated extensions
src/PyNavis.Runtime/Ai/GeneratedExtensionWriter.cs
Host services
- Configuration
src/PyNavis.Runtime/Config/PyNavisConfig.cs - Output and forms
src/PyNavis.Runtime/Output
Other components
- Navisworks user
- Navisworks host
- AI provider
Connections 21
- Navisworks user → Ribbon and shortcuts: invokes tools
README.md - Extension bundles → Ribbon and shortcuts: defines controls
README.md - Ribbon and shortcuts → Script execution: runs scripts
- Hooks and startup → Script execution: runs scripts
README.md - Script execution → Python engines: selects engine
- Script execution → Navisworks host: executes in host
README.md - Script execution → pynavis API: imports helpers
README.md - pynavis API → Selection and sets: provides set helpers
README.md - Navisworks user → Selection and sets: manages selections
README.md - Navisworks user → Clash tools: reviews clashes
README.md - Navisworks user → Viewpoint tools: manages viewpoints
README.md - Navisworks user → Data and exports: exports model data
README.md - Navisworks user → Python playground: runs experiments
- Dock panels → AI chat panel: hosts panel
- Navisworks user → AI chat panel: requests a tool
README.md - AI chat panel → AI authoring session: submits prompts
- AI authoring session → AI provider: sends chat requests
README.md - AI authoring session → Generated extensions: writes tools
README.md - Generated extensions → Extension bundles: adds generated tools
README.md - Configuration → Python engines: configures engine
- pynavis API → Output and forms: offers output UI
README.md