Hi, I’m a total KiCad NOOB, so forgive me if I’m asking an unreasonable question.
I’ve read in several places that it is possible to import PCAD 2K files. I exported a Protel 99 board and schematic, and from what I’d read I thought I just had to select File|Open and change the file type to PCAD 2K.
Well, the problem is that I cannot find a File|Open or File|Import in the menu. Only a greyed out File|Append and the usual Save and Save as options.
I just installed KiCad, and it is V4.07. I’m running it on Debian Linux.
Doh! Sorry, still half awake. Line 56 is where the assert was raised in the source code Code says
if( !fgets( line, sizeof( line ), fp )
// first line starts with "ACCEL_ASCII" with optional stuff on same line after that.
|| memcmp( line, ACCEL_ASCII_KEYWORD, sizeof(ACCEL_ASCII_KEYWORD)-1 ) )
THROW_IO_ERROR( "Unknown file type" );
So basically the file does not start with “ACCEL_ASCII …”. The file might not be ASCII format, or is not expected format. I think to investigate further I would need to see the file.
If you can try the latest nightly build, the PCAD import might work. I do not recommend nightly builds for “production” use.
Also, the PCAD importer was originally part of https://sourceforge.net/projects/pcad2kicad/, I don’t know if that is still maintained, possibly it can be run standalone.
just check your exported file is in PCAD2K ASCII format.
If the error still appear, that means your export cannot be read/imported correctly for a bug or an earlier format.