Closed apeng2012 closed 2 years ago
Could you provide annotated screenshots to explain what you mean?
Is the problem that the net isn't assigned the correct net? Or is a closed polygon missing a segment?
There is an error in the above program '(net 0)' changed to '(net 1)'
fw.write('\r\n (segment (start {:.4f} {:.4f}) (end {:.4f} {:.4f}) (width {}) (layer {}) (net 1))'.format(last[0], last[1], pt[0], pt[1], width, result.group(6)))
https://github.com/SphinxEVK/RT1052V2/blob/master/RT1052EVAbkup.PcbDoc
··· (gr_arc (start 52.41544 -56.07304) (end 52.57800 -56.07304) (angle -90) (layer F.Cu) (width 0.1016)) ···
Convert 'gr_arc' to many more small 'segment'
(segment (start 52.5682 -56.1286) (end 52.5562 -56.1543) (width 0.1016) (layer F.Cu) (net 1))
(segment (start 52.5562 -56.1543) (end 52.5400 -56.1775) (width 0.1016) (layer F.Cu) (net 1))
(segment (start 52.5400 -56.1775) (end 52.5199 -56.1976) (width 0.1016) (layer F.Cu) (net 1))
(segment (start 52.5199 -56.1976) (end 52.4967 -56.2138) (width 0.1016) (layer F.Cu) (net 1))
(segment (start 52.4967 -56.2138) (end 52.4710 -56.2258) (width 0.1016) (layer F.Cu) (net 1))
(segment (start 52.4710 -56.2258) (end 52.4437 -56.2331) (width 0.1016) (layer F.Cu) (net 1))
(segment (start 52.4437 -56.2331) (end 52.4154 -56.2356) (width 0.1016) (layer F.Cu) (net 1))
I understand the problem now, KiCad was not able to have arcs with nets, so I used graphical arcs instead. I will change the behaviour of the converter to use several segments instead. In parallel I am in contact with the KiCad developers for a better method.
KiCad6 provides an arc track, do you want a solution for KiCad 4-5 or KiCad6 ?
I have switched the code to target KiCad6 now and implemented the arc's properly now. Please try again now.
After converting with altium2kicad there may be 'gr_arc' in the Cu layer. 'gr_arc' has no net attributes
Can it be added to the project to make the 'segment' net complete