Expand description
Read-only, bounded host discovery for KiCad 3D model search paths.
Mirrors Python KiCadEnvironment + kicad_library_extraction._build_model_search:
- Discovers installed KiCad
KICAD<major>_3DMODEL_DIRdirectories and the highest non-.99fallback_model_dir. - Reads user
environment.varsandsystem.extra_3d_search_dirsfrom the latest non-.99kicad_common.json(KICAD_CONFIG_HOME-> platform config base). - Overlays process environment variables (highest precedence).
- Enables
.wrl-> sibling.step/.stpresolution by default.
Functionsยง
- discover_
model_ search_ context - Discover a
KiCadModelSearchContextfrom the current host environment and optional project root. - discover_
model_ search_ context_ from_ env - Explicit-environment host discovery for deterministic testing and caller control.