pcbnew export to step null label error
Description
Exporting a PCB layout to a step file fails with the following error.
Generate board full shape. A null Label has no attribute. ** Error exporting STEP file. Export aborted. **
Steps to reproduce
Upon comparing files between working and non working version, it appears that the board thickness has been set to 0.
working
(kicad_pcb (version 20220131) (generator pcbnew)
(general
(thickness 1.6)
)
broken
(kicad_pcb (version 20220131) (generator pcbnew)
(general
(thickness 0)
)
The only thing I did to cause this was add a new net class. But this only seems to happen when accessing the board setup via the Track dropdown list "edit pre-defiend sizes"
Going to File -> Board setup and adding a new net class there does not cause the issue.
Once the null error arises, going back to File -> Board setup , still shows a board thickness of 1.6mm. Clicking on OK here will then fix the problem.
I have reproduced this using the following steps.
-
Run pcbnew (standalone will do)
-
add footprint ( I used Audio_Module, Reverb_BTDR-1h)
-
draw edge cut rectangle around component.
-
export to step - works.
-
click Track: use netclass dropdown, select edit predefined sizes.
On dialog, click "Net Classes"
click "+" button and entry name for new net class.
click OK button.
-
export to step now fails with null error.
-
Go to board setup -> physical stackup. board thickness shows as 1.6mm. click ok
-
export to step now works
KiCad Version
Application: KiCad PCB Editor
Version: 6.99.0-unknown-07e1278c05~146~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
FreeType 2.10.1
libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux 5.13.0-28-generic x86_64, 64 bit, Little endian, wxGTK, KDE, x11
Build Info:
Date: Feb 5 2022 01:18:36
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