OpenBuilds / OpenBuilds-CAM

Online CNC CAM System
https://cam.openbuilds.com
GNU Affero General Public License v3.0
260 stars 632 forks source link

Unable to open gerbers exported from EasyEDA #43

Closed scaytrase closed 5 years ago

scaytrase commented 5 years ago

I'm trying to open my easyeda project to the cam. selecting gerbers gives me

main.js:92 New FileOpen Event:
main.js:93 Event
main.js:78 TypeError: Cannot read property 'length' of undefined

(https://cam.openbuilds.com/lib/gerber/gerberparser.js line 8)
gerberparser.js:8 Uncaught TypeError: Cannot read property 'length' of undefined
    at parseGerber (gerberparser.js:8)
    at FileReader.r.onload (main.js:243)

also excellon files could not be selected, since no *.DRL format is supported

Gerber archive attached

Gerber_separate-spindle-board_20190228201511.zip

petervanderwalt commented 5 years ago

Only tested with Eagle.

Checkout https://www.youtube.com/watch?v=0pjSeT0OACI

Will check your files at some point though, leaving open for now

petervanderwalt commented 5 years ago

Post some screenshots and easyeda files too

scaytrase commented 5 years ago

it's pretty simple so I expected it to work, but...

separate-spindle-board.zip

image

petervanderwalt commented 5 years ago

Unfortunately at this time I'll close this issue:

  1. EasyEDA being a product for LCSC might not spit out correct Gerber X274 format files, it may be custom to their internal workflow so you can order boards from them
  2. EasyEDA user base is very limited. Eagle is huge, Kicad too.
  3. The file fails to parse in https://github.com/OpenBuilds/cam/tree/master/lib/gerber - I simply cannot afford the time to debug why due to the limited user count. Sorry (:
petervanderwalt commented 5 years ago

Cool, glad you got a solution. As mentioned though, that was a "may be" ^ The rest still stands.

Thanks