Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A LinearRing must have at least 3 coordinate tuples #67

Closed
rcludwick opened this issue Aug 17, 2020 · 4 comments
Closed

A LinearRing must have at least 3 coordinate tuples #67

rcludwick opened this issue Aug 17, 2020 · 4 comments

Comments

@rcludwick
Copy link

rcludwick commented Aug 17, 2020

Describe the bug:

$ kikit panelize grid --gridsize 2 3  decade.kicad_pcb decade_panel.kicad_pcb

An error occurred: A LinearRing must have at least 3 coordinate tuples
No output files produced

Expected behavior: A clear and concise description of what you expected to happen.

A panel to have been made using the defaults for a 2x3 grid.

To Reproduce

Create a panel with a 2x3 grid with the following board.

https://github.com/rcludwick/decade-box

Source board:

https://github.com/rcludwick/decade-box

KiKit command:

$ kikit panelize grid --gridsize 2 3  decade.kicad_pcb decade_panel.kicad_pcb

Version

0.6.0/master.

Error is hidden behind #66.

@yaqwsx
Copy link
Owner

yaqwsx commented Aug 18, 2020

On line 1602 in your .kicad_pcb there is a line with a zero length:

  (gr_line (start 100.75 73.25) (end 100.75 73.25) (layer Edge.Cuts) (width 0.01) (tstamp 5F017110))

This is what makes KiKit yield an error. I wasn't aware that such lines are possible in KiCAD. I added a check for such spurious geometry elements in 41e99b1.

@rcludwick
Copy link
Author

Thanks. Feel free to add that kicad_pcb to a test suite, if you'd like.

@yaqwsx
Copy link
Owner

yaqwsx commented Aug 18, 2020

Released in v0.6.1

@yaqwsx yaqwsx closed this as completed Aug 18, 2020
@rcludwick
Copy link
Author

Thank you, boards are off to the fab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants