Step export in Pcbnew fails if the "Value" field of a footprint is a single backslash.
Description
When the "Value" field of a footprint consists of a single backslash, then the STEP export of the PCB fails with the message
Read file: '/home/paul/projects/kicad/asdf/asdf_holes/_autosave-asdf_holes.kicad_pcb'
Build STEP data
Create PCB solid model
No valid board outline.
could not create PCB solid model
** Error building STEP board model. Export aborted. **
Steps to reproduce
- Open Pcbnew with a valid project file.
- Select a footprint, edit it's properties, Change it's "Value" field to a single backslash.
- *Pcbnew / File / Export / Step ...
This was discovered by EricL on the user forum, in a project for a PC Keyboard: https://forum.kicad.info/t/solved-stp-export-failing-board-outline-error-nightly-build/32390/10 And I verified it in another project in today's nightly.
KiCad Version
Application: KiCad PCB Editor
Version: 6.0.0-rc1-unknown-92c732d3d9~144~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
Platform: Linux 5.4.0-91-generic x86_64, 64 bit, Little endian, wxGTK, xfce, x11
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCC: 7.5.2
Curl: 7.68.0
ngspice: 31
Compiler: GCC 9.3.0 with C++ ABI 1013
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON