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.
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.
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.