Skip to main content

SmartHopper.Menu

Grasshopper menu-bar integration and the settings UI. Cross-platform via Eto.Forms (works on Windows and macOS Rhino 8).

SmartHopperMenu (GH_AssemblyPriority) initializes SmartHopper at Grasshopper load, then adds the SmartHopper menu:

  • Settings — the tabbed SettingsDialog.
  • Refresh Providers — rescan provider assemblies.
  • Verify Providers — re-check signatures/hashes, report classifications.
  • Diagnostics — diagnostics helpers (log folder shortcut in debug builds).
  • About — version and license.

Settings dialog​

Dialogs/SettingsDialog.cs — tabs:

  • GeneralSettingsPage — default provider, debounce, batch polling, logging, integrity check mode.
  • ProvidersSettingsPage — trusted-provider toggles; clicking a provider opens a GenericProviderSettingsPage built from that provider's SettingDescriptors.
  • AssistantSettingsPage — assistant provider/model, canvas button, greetings, suggested prompts, autonomous budgets.

Setting models live under Dialogs/SettingsTabs/Models/ (GeneralSettings, LogSettings, TrustedProvidersSettings, AssistantSettings).

Platform notes​

The menu runs inside Grasshopper's WinForms MenuStrip; dialogs are Eto.Forms so they render natively on macOS too. The assembly also handles the one-time macOS Keychain migration prompt for previously stored API keys.