"Export footprints to new library" from Altium imported pcb fails to parse long directory path
Description
I attempted to migrate my footprints from Altium to KiCad using the following steps:
- Imported an Altium .pcb file into the KiCad standalone PCB editor.
- Navigated to File -> Export -> Footprints to a new or existing library.
During step 2, I received an error message for every footprint (see image below).
I believe this is due to the exporter attempting to create the footprints while including the entire Windows directory path, rather than just using the last portion of the directory string to rename the footprints.
I opened a thread in the forum and another user reproduced the issue:
Seems to be a similar issue in #6345 (closed) but I don't know if it is completely related.
Steps to reproduce
I have attached the reproducible PCB file to this issue:
Issue_Import_Altium_Library_Attempt.kicad_pcb
- Import an Altium .pcb file into the KiCad standalone PCB editor.
- Navigate to File -> Export -> Footprints to a new or existing library.
KiCad Version
Application: KiCad x86_64 on x86_64
Version: 7.0.0-da2b9df05c~171~ubuntu22.04.1, release build
Libraries:
wxWidgets 3.2.1
FreeType 2.11.1
HarfBuzz 6.0.0
FontConfig 2.13.1
libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.13
Platform: Pop!_OS 22.04 LTS, 64 bit, Little endian, wxGTK, pop, x11
Build Info:
Date: Feb 27 2023 09:24:10
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.2
Curl: 7.87.0
ngspice: 38
Compiler: GCC 11.3.0 with C++ ABI 1016
Build settings:
KICAD_SPICE=ON