When managing component libraries—especially across a centralized SQLite Golden Library or a large client project—you constantly need to sanity-check a .kicad_mod footprint or inspect a .kicad_sym symbol file.

Launching the full KiCad Symbol Editor or Footprint Editor just to verify pad numbering, package dimensions, or whether a 3D STEP model is properly linked takes several seconds and clutters your active workspace.

To make library inspection instantaneous, I built KiCad Quick Symbol & Footprint Viewer (quick-viewer in kicad-tools): a lightweight standalone desktop app that associates directly with .kicad_sym and .kicad_mod files in Windows Explorer. Double-click any library file, and it opens in under a second with smooth pan/zoom, pad numbers, metadata cards, and an integrated 3D view.


1. Architecture: Official Vector & 3D Graphics via kicad-cli

Instead of writing a fragile custom S-expression graphics renderer from scratch, quick-viewer delegates rendering to KiCad’s own headless kicad-cli binary while handling UI, caching, and navigation in a DPI-aware wxPython canvas (kicad_quick_view.py):

[ Double-Click .kicad_sym / .kicad_mod in Explorer ]
                         │
                         ▼
         kicad-view.vbs (Zero-Console Launcher)
                         │
                         ▼
      QuickViewFrame (DPI-Aware wxPython App)
         ├── Symbol / Footprint S-Expression Parser
         ├── RenderManager (MD5 Disk Cache)
         │     ├── 2D Mode: kicad-cli sym/fp export svg
         │     └── 3D Mode: Temp .kicad_pcb + kicad-cli pcb render
         └── VectorViewerCanvas (Pan, Cursor Zoom, Grid, [2]/[3] Toggle)

2. 2D Vector Inspection: Symbols and Footprints

Symbol Libraries (.kicad_sym)

  • Searchable Symbol List: Filter large multi-part libraries instantly.
  • Multi-Unit Switching: Toggle cleanly between Unit A, Unit B, etc.
  • Property Metadata Sidebar: Displays Reference, Value, Footprint, Description, and custom fields, plus a clickable Datasheet button that opens the PDF/URL in your browser.

Footprint Inspector (.kicad_mod)

  • Legacy & KiCad 9 Support: Parses both modern KiCad 9 footprints and legacy .kicad_mod files.
  • Pad Numbers & Layer Colors: Renders official KiCad copper pads with pad numbers, silkscreen, fab, and courtyard layers.
  • Package Stats: Automatically computes pad count breakdowns (Total, SMD, Through-Hole, NPTH) and physical bounding box dimensions in millimeters.

3. Integrated 3D Model Preview ([2] / [3] Toggle)

A 2D footprint might look clean, yet still point to a broken ${KIPRJMOD} path or a missing STEP file. The viewer includes a dedicated 3D View mode ([3] hotkey or toolbar toggle):

  1. Path Resolution: resolve_3d_model_path() expands ${VAR} and $VAR environment variables in (model ...) S-expressions, handles relative golden-library paths (../3dmodels/<filename>), and verifies .step, .stp, or .wrl existence on disk.
  2. Headless 3D Rendering: When a 3D model is found, RenderManager.render_footprint_3d() generates a minimal temporary .kicad_pcb with an Edge.Cuts outline scaled to the footprint bounding box (half_w = max(5.0, bbox_w/2 + 4.0)) and invokes:
    kicad-cli pcb render --quality basic ...
    
    Using --quality basic with a transparent alpha background delivers sub-0.1s renders across preset camera angles (iso, top, front, right).
  3. MD5 Disk Cache: Rendered SVGs and 3D PNGs are cached on disk using an MD5 hash of the file’s mtime, size, angle, and bounding dimensions, making repeat views instantaneous.

4. Zero-Console Windows File Associations

Nothing ruins a quick utility like a black PowerShell or cmd.exe window flashing every time you open a file.

The quick-viewer directory ships with a 1-click setup (setup_associations.bat / associate_files.py):

  • Auto-Discovery (discovery.py): Scans HKCU / HKLM Uninstall registry keys, %LOCALAPPDATA%\Programs\KiCad, %ProgramFiles%\KiCad, and KICAD_PATH to locate KiCad’s bundled pythonw.exe.
  • HKCU Registration: Writes .kicad_sym and .kicad_mod associations directly into HKCU (no administrator privileges required) pointing to pythonw.exe / kicad-view.vbs for silent launch.

Essential Shortcuts

Input Action
Mouse Wheel Cursor-centered zoom (10% to 3000%)
Left / Middle / Right Drag Pan viewport
2 / 3 Toggle 2D Footprint / 3D Model View
F or Double-Click Fit drawing to window
T Toggle Dark (#1c1c1e) / Light theme
G Toggle CAD dot grid
F5 Reload file from disk