flatcam

Open full view…

Excellon file getting errors and will not load into FlatCam?

richardneal
Sat, 18 Aug 2018 05:29:49 GMT

This is the error I receive every time I try to load a Excellon file into FlatCam. The Gerber files work fine? I reinstalled the software(FlatCam) and don’t know what else to do. I get the error in FlatCam from the Excellon file. I have tried (3) different board designs I have in Eagle and still no help? Rick [error] An internal error has ocurred. See shell. Traceback (most recent call last): File "C:\flatcam\FlatCAMApp.py", line 2071, in obj_init File "C:\flatcam\camlib.py", line 2491, in parse_file File "C:\flatcam\camlib.py", line 2558, in parse_lines File "C:\flatcam\camlib.py", line 2663, in parse_number ValueError: could not convert string to float: [error] No geometry found in file: C:/Users/nealr/Documents/eagle/32PinATAdapter/FunctionGen_Excellon.dri

Marius Stanciu
Sat, 22 Sep 2018 21:20:56 GMT

Hi Thomas, Try the latest Nightly that I just posted and see if the error is still there. If you still have problems please attach the Excellon file here (or a link to it) so I can debug the issue. Thanks!

thomasfernando
Sat, 22 Sep 2018 21:21:20 GMT

Thanks Marius , will check and revert immdtly.

thomasfernando
Sat, 22 Sep 2018 21:27:37 GMT

Hi Marius, Still getting error : [error] An internal error has ocurred. See shell. Traceback (most recent call last): File "D:\1.DEV\FlatCAM_PyQt4\FlatCAMApp.py", line 4242, in obj_init File "D:\1.DEV\FlatCAM_PyQt4\camlib.py", line 3585, in create_geometry KeyError: '1' [ERROR] Object is not Excellon file. Aborting Excellon object creation.

Marius Stanciu
Sat, 22 Sep 2018 21:29:20 GMT

Post the file here so I can have a look at it. You can post it as code (click the ? in the right corner of message window) or you can post a link with it on a hosting site eg. https://nofile.io/

thomasfernando
Sat, 22 Sep 2018 21:31:52 GMT

Was just about to ask that :). https://nofile.io/f/owzFUZBwfAp/CNC.drl

Marius Stanciu
Sat, 22 Sep 2018 21:33:20 GMT

Which EDA program generated this? It's the most wierd Excellon file that I've seen.

Marius Stanciu
Sat, 22 Sep 2018 21:33:34 GMT

It has the least information ever.

thomasfernando
Sat, 22 Sep 2018 21:36:03 GMT

Am not sure,it was done by one of my vendors. But I just checked opening this file with another package called LineGrinder.It works there.Also my PCB manufacturer makes my PCBs with this,so I dont know.

Marius Stanciu
Sat, 22 Sep 2018 21:36:08 GMT

It begins like this: --- % T1C.028F197S55 X04743Y060593 X048217Y060593 X04743Y061381 X048217Y061381 X04743Y062168 X048217Y062168 X04743Y062956 X048217Y062956 X04743Y063743 X048217Y063743 X04743Y06453 X048217Y06453 X04743Y065318 X048217Y065318 X04743Y066105 X048217Y066105 X04743Y066893 X048217Y066893 X04743Y06768 X048217Y06768 T2C.032F197S55 X01103Y03487 X01333Y03487 X01486Y03487 X01333Y036855 X0115Y03725 X0155Y03725 X01333Y03843 X01292Y03903 --- And there is no Header at all ... and tool definitions are done in the body of the file. No wonder that the program is saying that this is no Excellon file ...

Marius Stanciu
Sat, 22 Sep 2018 21:37:19 GMT

Perhaps they are manually modifying it and create a header...

thomasfernando
Sat, 22 Sep 2018 21:38:14 GMT

Hmmm... so nothing can be done ?

Marius Stanciu
Sat, 22 Sep 2018 21:40:09 GMT

I don't know ... I will have to think about it. Perhaps try to make a default header when the parser detect it is missing ...

thomasfernando
Sat, 22 Sep 2018 21:41:15 GMT

I will check tomorrow with some "good" excellon file and see if any manual additions will help.Its 3:10 am here :P Thanks for real time support !

Marius Stanciu
Sat, 22 Sep 2018 21:41:46 GMT

Here it is how a normal file header looks like (almost all Excellon files): --- M48 ;Layer_Color=9474304 ;FILE_FORMAT=2:5 INCH,LZ ;TYPE=PLATED T1F00S00C0.02362 T2F00S00C0.02800 T3F00S00C0.03150 T4F00S00C0.03543 T5F00S00C0.03937 T6F00S00C0.04724 T7F00S00C0.08268 T8F00S00C0.09843 T9F00S00C0.10630 T10F00S00C0.12598 % T01 X0275Y00095 Y0022 X0255Y00395 X02485Y005 X02035 X019Y00105 X0148Y00635 X00465Y0066 Y0076 Y0086 Y0096 Y01195 ---

Marius Stanciu
Sat, 22 Sep 2018 21:42:45 GMT

Good night! I will have to turn in soon, too (40 minutes past midnight, here :) )

thomasfernando
Sat, 22 Sep 2018 21:43:33 GMT

Goodnight ,Thanks again!

Marius Stanciu
Sat, 22 Sep 2018 21:48:25 GMT

Just seen this: https://forum.kicad.info/t/gerbview-reading-drill-file/2841/6 It's the same thing ... Mentor PADS hits again :)

Marius Stanciu
Sun, 23 Sep 2018 01:00:14 GMT

:) Done. Support added for headerless Excellon files, and now I go to a very late and hopefully, deep sleep. BTW, your file has : units = INCH, Excellon number format 2:4, Excellon zeros = LZ [HeaderlessExcellon](//muut.com/u/flatcam/s1/:flatcam:vTHX:headerlessexcellon.jpg.jpg)

thomasfernando
Sun, 23 Sep 2018 05:48:57 GMT

Wow! Thanks a lot Marius !!

thomasfernando
Sun, 23 Sep 2018 05:49:13 GMT

Works perfectly now

next