STEP export produces empty board in nightly

The current nightly (5.99.0-7040-g8c08b861ab) produces an empty board (board body only) when exporting STEP. Can anybody confirm this?

Working fine on today’s version and last Fridays’s version too.

Application: Pcbnew

Version: 5.99.0-unknown-fa8c48675~104~ubuntu18.04.1, release build

Libraries:
wxWidgets 3.0.4
libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3

Platform: Linux 5.4.0-53-generic x86_64, 64 bit, Little endian, wxGTK, KDE, x11

Build Info:
Date: Nov 12 2020 10:18:18
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.22
Boost: 1.65.1
OCE: 6.9.1
Curl: 7.58.0
ngspice: 33
Compiler: GCC 7.5.0 with C++ ABI 1011

Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
KICAD_USE_OCE=ON
KICAD_SPICE=ON

I just exported a step file with KiCad:

Version: 5.99.0-unknown-fa8c48675~104~ubuntu20.04.1, release build

In FreeCAD it looks like an empty PCB with no tracks:

Which was sort of expected, because the export of the step file generated lots of errors:

Read: /home/paul/projects/kicad/mumar_base_stm32_5.99/mumar_base_stm32.kicad_pcb
Build STEP data
[3D File Resolver] file not found:
/usr/lib/kicad-nightly/share/kicad/3dmodels//Connector_PinHeader_2.54mm.3dshapes/PinHeader_2x03_P2.54mm_Vertical.wrl
no model defined for component P1
no model defined for component C35
no model defined for component C36
no model defined for component P3
no model defined for component F100
no model defined for component R40
no model defined for component P4
no model defined for component C41
no model defined for component C18
no model defined for component D24
no model defined for component F24
no model defined for component R24
no model defined for component C30
no model defined for component C27
no model defined for component C54
no model defined for component C56
no model defined for component L50
no model defined for component D50
no model defined for component C53
no model defined for component U485
no model defined for component D1
no model defined for component C37
no model defined for component U486
no model defined for component C39
no model defined for component C25
no model defined for component C26
no model defined for component S40
no model defined for component C24
no model defined for component J666
no model defined for component F1
no model defined for component USB1
no model defined for component C55
no model defined for component R10
no model defined for component R11
no model defined for component R13
no model defined for component R16
no model defined for component C10
no model defined for component C34
no model defined for component C9
no model defined for component D485
no model defined for component C59
no model defined for component D486
no model defined for component U33
no model defined for component U50
no model defined for component C52
no model defined for component F485
no model defined for component C38
no model defined for component C57
no model defined for component D51
no model defined for component F486
no model defined for component R5
no model defined for component C51
no model defined for component R41
no model defined for component C485
no model defined for component R12
no model defined for component D33
no model defined for component U4
no model defined for component R52
no model defined for component R50
no model defined for component C50
no model defined for component R51
no model defined for component C32
Create PCB solid model
Build board outline (9 items)
Build board cutouts and holes (153 holes)

Generate board full shape
Write STEP file

*******************************************************************
******        Statistics on Transfer (Write)                 ******

*******************************************************************
******        Transfer Mode = 0  I.E.  As Is       ******
******        Transferring Shape, ShapeType = 0                      ******
** WorkSession : Sending all data
 Step File Name : $tempfile$.step(14936 ents)  Write  Done

Step file /home/paul/projects/kicad/mumar_base_stm32_5.99/mumar_base_stm32.step created

STEP file:
/home/paul/projects/kicad/mumar_base_stm32_5.99/mumar_base_stm32.step
has been created successfully.

But the simplest step is to simply open the PCB in KiCad’s internal 3D viewer. That also does not show any 3D models.
This PCB was first designed in KiCad V5, then opened and saved with KiCad V5.99 and the links to 3D got broken.
I have not looked into details yet.

=================
A bit later.

I changed:
"… / Preferences / Configure Paths / KISYS3DMOD"
from:

/usr/lib/kicad-nightly/share/kicad/3dmodels/

to:

/usr/share/kicad/modules/packages3d

And now all 2D models in both KiCad’s 3D viewer and in the exported STEP file are back.

@paulvdh: In the 3D viewer, the board is ok, no missing 3D models.
@pedro: I see you have OCE on. The official CMakeSettings.json has OCC on, OCE off. Maybe that’s a point, I’ll check that. I’m new to building, maybe I don’t have my ducks in a row :wink:
But anyways, it happens with the official nightly.

Hi Martin @straubm

I’m using the official ubuntu version from ppa. I have not compiled the sources.

Hi Pedro @pedro
It is the same with the official W10 build and my own compile.
Some boards work, others don’t. I think I’ll cry for help in the dev’s mailing list.

I can’t confirm. Just exported a demo project to report this bug:

Obviously it’s a bug. The file format changed in today’s nightly (I cannot step back to yesterday’s board version). Yesterday’s board version worked even today, after saving (converting) it with today’s nightly the bug appeared. Report already filed.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.