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!
Thanks Marius , will check and revert immdtly.
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.
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/
Was just about to ask that :). https://nofile.io/f/owzFUZBwfAp/CNC.drl
Which EDA program generated this? It's the most wierd Excellon file that I've seen.
It has the least information ever.
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.
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 ...
Perhaps they are manually modifying it and create a header...
Hmmm... so nothing can be done ?
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 ...
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 !
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 ---
Good night! I will have to turn in soon, too (40 minutes past midnight, here :) )
Goodnight ,Thanks again!
Just seen this: https://forum.kicad.info/t/gerbview-reading-drill-file/2841/6 It's the same thing ... Mentor PADS hits again :)
:) 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)
Wow! Thanks a lot Marius !!
Works perfectly now