thesourcerer8 / altium2kicad

Altium to KiCad converter for PCB and schematics
https://www2.futureware.at/KiCad/
GNU General Public License v2.0
853 stars 154 forks source link

Does the converter actually work or what am I doing wrong? #81

Closed epsilon-phi closed 4 years ago

epsilon-phi commented 4 years ago

Hi,

first up - sorry for the bold question. I have been trying for some time to get the converter running but I am only getting bad results. I am new to github, so I hope this question is accepatble.

I am trying to convert a project that my university desperatly wants to have as a KiCad file. Trying to run the converter with it yields the following issues:

I have created a very small test project to hopefully solve these issues on my side myself but I am only getting the same issues, see the prictures for an explanation of the aforementioned points. Please find all my files attached. TestPrj.zip If it helps, I can gladly provide the big project as well.

grafik grafik grafik grafik

Could it be a version issue, so that the converter would only work with specific versions of Altium and KiCad, juding from the "old form of library list" message? Which versions of Altium and KiCad was this converter verified with?

I am still hoping to not have to redo my project entirely in KiCad again. Help is greatly appreciated.

Best regards Phil

thesourcerer8 commented 4 years ago

The fileformat of Alitum has changed, the schematic format has changed the parameter names from uppercase to mixedcase. For me the filling works when i press "B". The rectangular pads are a bit strange, perhaps the fileformat changed there as well, because the file seems to say that those have to be circles or ovals. Perhaps it is an oval with very sharp corners? Ovals are converted to circles by my converter at the moment. Can you please provide a test-file which contains all kinds of different shapes, together with screenshot how they look like, and perhaps text next to them that explains how they should look like? rectangular, oval, circle, ... Can you please explain the drill diameter with larger screenshots and marking them? I am not used to drill diameters.

thesourcerer8 commented 4 years ago

Could you please correct the drill diameter in the KiCad file and send me both original and corrected file?

epsilon-phi commented 4 years ago

Okay sure, I'll try my best.

So here is the test-file: 2D Altium: shapes-altium 2D KiCad: shapes-kicad 3D Altium: shapes-altium3d It seems that octagonal and rounded rectangle pads are both getting converted into round (=circle) pads. Slots are being converted to rounds (fair enough). For some strange reasons NPTH pads are not selectable in KiCad and they are shown only halfway through in the 3D view. Altium drills: drills KiCad drills: drills-kicad As for the vias, same picture as before: where the drill diameter should be 0.3, its 0.6 (mm). The via pad however is correct (see pictures). I discovered that the KiCad via description lines simply miss "(drill 0.3)". Maybe this will already fix the issue. drills-text Here is a zip will all the files including pictures: a2k-shapestest.zip

Do you have any ideas on the schematic yet?

thesourcerer8 commented 4 years ago

Ok, I have updated the convertschema.pl to handle the new file format. Thanks a lot for the test-files! I have added a rounded rectangle handling now, since KiCad is able to handle them now too. Can Altium define the percentage of roundedness? Could you please provide a test-file with various different "regions"? Triangles, rectangular, ... and please have a bit more space between the different objects. I still have to investigate the drill issue.

epsilon-phi commented 4 years ago

Oh this is great news. Thank you so much for your support, I appreciate it a lot!

Yes, Altium can define the percentage of roundness. Together with some regions and polygons, pads with different "roundnesses" are included in the new test file: a2k-test2.zip In Altium you see: test2-altium or in 3D: test2-altium3D In KiCad after the conversion you find: test2-kicad

I'll stay curious about how all this will come out. I'll also gladly provide more test data, if you should require so.

epsilon-phi commented 4 years ago

After checking you latest revision of the schematic converter I found it looks much better now. All the Footprints now get imported correctly and the traces and sheet entries and even the references to other sheets are there. Only the Power & Ground Net-Symbols are still missing and being shown as ??-Boxes, however thats nothing you cant fix by hand. Thanks for the amazing work! grafik

epsilon-phi commented 4 years ago

Only the Power & Ground Net-Symbols are still missing and being shown as ??-Boxes, however thats nothing you cant fix by hand.

I just re-read on the main page here, that this limitation is known. In that case, it seems like the converter does now do exactly what it should do. :D

thesourcerer8 commented 4 years ago

For me it worked once to just save the file, close kicad and open it again, and the symbols were there. Perhaps the converter does something wrong in the fileformat, I'll investigate ...

thesourcerer8 commented 4 years ago

Ok, I updated to the new kicad schematic fileformat, which solved the power symbols now.

thesourcerer8 commented 4 years ago

I added handling for the rectangle roundings now.

thesourcerer8 commented 4 years ago

The regions are converting to zones now.

thesourcerer8 commented 4 years ago

I removed the paste layer now which covered the holes

epsilon-phi commented 4 years ago

Okay I tested it today and my power symbols are still missing. But I rather belive that this has to do with my KiCad Version or something like this as I just cant get the polygons - which are there - to fill (<- definitely a KiCad error). As my original problem, that the converter did not do anything at all, has been solved now, I will close this thread and investigate a bit further on my side. Thanks a lot for your effort to adjust all these details in the process. Keep up the amazing work! Greetings

pointhi commented 4 years ago

@epsilon-phi

Thanks for your testfiles. I tried them with my importer which will be soon integrated into KiCad:

It seems most things work, except: rotated slot hole, rectangular hole and rounded zones. But those three things are not supported in KiCad and would need to be emulated anyways.

regionsround shapes