Hi,
I’m using gerbview as reviewing tool for what I generate in Allegro. But i’m not able to load drill files. Shows lots of “Tool 0 not defined” errors and some "Unexpected symbol 0x52 ". Those files can be correctly loaded into gc prevue. Anyone seen similar problem and know the solution?
Start by opening those files in a text editor.
That will give you a pretty good idea of what is actually in them.
There are also may Gerber and drill file dialects. Some adhere closely to the “standard” (which has evolved in the last 50 years or so), but even then, may use other features of the standard that are not well understood by other programs, as it’s possibly they only implemented the sub-set that they need themself.
If it is truly a drill file, then you may be able to tweak it a bit with a text editor.
That sure looks like a drill file.
Both Gerber files and Drill files use a format similar to “G-Code”, which is probably the oldest file formats still in widespread use. It was designed in the late '50-ies !
Lines starting with a semicolon are comment, and this means that there is no information about drill sizes in your file (Computer should ignore the comment).
If you compare your file with a drill file generated by KiCad, it’s quite obvious what to change. I see definitions for “T1” through “T12”, which are tool numbers, and the “C” after their definitions are either diameter or radius of the tools. Later those tool numbers are used to switch to those tools.
X & Y are used for coordinates, and your file uses a different format for coordinates, although both use “METRIC”.
For quick compare. Here is the start of a drill file generated by KiCad.
Your drill files have coordinates in a fixed format. I do not know if KiCad is able to handle those in drill files. I had a look at a gerber file made by KiCad and it has a similar fixed format without a decimal dot in the numbers.
But if you want to know more details, then look up some official documentation of these file formats.
So it looks like, simply, Kicad does not support drill files from allegro.
I thought NC drill and excellon are the same but they are apparently not.
Anyway, thanks for help! I really appreciate.
As I suggested earlier, those file formats exist in different dialects.
You may even be able to tweak the settings in allegro to bring it closer to KiCad’s variant. Wikipedia has a short overview with some differences:
If the link Seth posted does not work, it would also be relatively easy to write some script to convert between the dialects.
This Cadence file is real crap. No machine readable tool sizes, no tool commands, no indication where the decimal point is. Small wonder GerbView struggles with it. Fortunately it does state that it is ASCII - this is really helpful.