Improve error message when importing unsupported Altium .PcbDoc versions.
Description
There is an Error message when importing .PcbDoc in Kicad 7.0.7 or 7.99 saved from the latest Altium (I tried 23.6.0, 23.7.1, and the latest 23.8.1) (PCB 5.0 Binary)
The error shows missing files in the Altium's file structure:
“File not Found: ‘Regions6\Data’.”.
Steps to reproduce
- Save some Altium PCB as .PcbDoc (5.0 binary)
- Open PCB Editor in Kicad 7.0.7 or 7.99
- File / Import / Non-Kicad board and select GPS.PcbDoc
- Error “File not Found: ‘Regions6\Data’.” will pop up
Steps of a workaround:
-
Go to Altium and Export GPS.PcbDoc as Circuit Maker
-
Open PCB Editor in Kicad 7.99
-
File / Import / Non-Kicad board and select GPS.CMPcbDoc
-
Warning "More than one Altium netclass with name 'All Nets' found. Only first one will be imported" will pop up.
-
But PCB will import seemingly fine!
Note, this workaround doesn't work in Kicad 7.0.7 and it shows this error:
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 7.99.0-2316-g ea310158, release build
Libraries: wxWidgets 3.2.2 FreeType 2.12.1 HarfBuzz 8.0.0 FontConfig 2.14.2 libcurl/8.2.1-DEV Schannel zlib/1.2.13
Platform: Windows 11 (build 22000), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info: Date: Aug 20 2023 07:17:41 wxWidgets: 3.2.2 (wchar_t,wx containers) Boost: 1.82.0 OCC: 7.7.1 Curl: 8.2.1-DEV ngspice: 40 Compiler: Visual C++ 1936 without C++ ABI