Error while creating step File

While I try to import the step files there’s an error saying " Unable to create STEP file. Check that the board has a valid outline and models."
Warning: Exception code=0xc0000005 flags=0x0 at 0x000000006DD85D40. Access violation - attempting to read data at address 0x0000000000000028.

There is a 3D model for most of the footprints few don’t have but that should be fine , I guess.

I can preview the Board in 3D Viewer with any error and also in DRC.

“Access violation” is a serious bug in any software. Can you share the project + the relevant libraries + especially 3D libraries? (Preferably all bundled together in on zip file which anyone can extract and try the project.)

Give also exact information about your KiCad version, OS etc.

I’m running KiCAD 5.1.8 on windows.
Can I share the Project files private message?

You can send them via PM
I presume that you mean 5.1.8, there has never been a 5.8

I opened the files and can export a STEP, 38 missing parts though.
I am using 5.1.9 on Windows


This is direct import into FreeCad
Kicadstepup loads the pcb in as well, no crash

Will check again.
Any new feature added in 5.1.9 compared to the previous 5.1.8

New features are not allowed in the 5.1.x branch

There are many bug fixes:

Hey I tried in both 5.1.6 as well 5.1.8 its failing

As I was missing 30+ models, the most likely cause is a bad part model

But in your case at-least it generate the 3D step model.
but for me with all 3D Model it doesn’t

After clearing all the warning,
I still get an error saying " Unable to create step file. Check that board has a valid outline and models".
The the outline is proper.

Did you try modifying this settings ?

image

Yes I’ve even enabled ignore virtual components and Board center origin

Any updates on this?

Can you provide your full version info? Help -> About -> Copy Version Info

specifically interested in the OCC or OCE version.

Version: KiCAD (5.1.8)-1, release build.

I wonder why people in general don’t use the Copy Version Info button in the About dialog when they are explicitly asked to do so.

That’s not what I’m asking for. Go to Help -> About and press “Copy Version Info”

The info should be something like:

Application: KiCad
Version: (5.1.9)-1, release build
Libraries:
    wxWidgets 3.0.5
    libcurl/7.71.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.73.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.71.0
    Compiler: GCC 10.2.0 with C++ ABI 1014

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

I think I’ve answered my own question, though. If you’re using a prebuilt windows build you have OCE 6.9.1. (OCC/OCE is the 3d library used for importing/exporting STEP files). I’m guessing this issue would be fixed in OCC 7.whatever they’re on now, which is what some other platforms use.

There have been some other errors related to this as well, which is one of the reasons OCC is currently preferred over OCE as I understand it.

I don’t have any suggestions other than to try to narrow down which model is causing the issue, and see if you can import/re export the model with Freecad or another tool. Maybe that will fix it.

Application: Eeschema
Version: (5.1.8)-1, release build
Libraries:
wxWidgets 3.0.5
libcurl/7.71.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.73.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.71.0
Compiler: GCC 10.2.0 with C++ ABI 1014

Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON

Is there a way where we can import Kicad_pcb file into freeCAD ?