-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Support rendering Allegro drill files with lots of missing information #392
Comments
@shawon1220 what CAD program generated this drill file? And what program did you use to get the screenshot above? The drill file is technically indefinite, which is why tracespace can't render it. Problems:
It would be a non trivial amount of work to support this particular flavor of indefinite drill file. If you are able to regenerate this drill file with different settings, I would recommend trying that. The tracespace packages work best if drill files are specified in something close to the XNC spec, as output by KiCAD. For now, I do not plan to try to support this drill file. |
@mcous Thank you very much for your suggestion. These files are from users, and there are many more files in this format generated by Cadence Allegro16. https://dfm.elecfans.com/viewer/?tid=DFM-dh can get the screenshot above. M48 M48 |
Shoot, of course it's Allegro. Similar issues over in #371, so I'm going to re-open this while I think about it. Would you mind posting that
I believe that the hole sizes are in mils:
So
This probably refers to the drill coordinates themselves, but it's important information for tracespace to be able to parse them. For example, I'm guessing the first file might have
There are a few other, non-standard ways to specify this that tracespace understands. For example, a
|
@mcous Thank you, I am now pre-reading the content of art_param.txt to support Allegro format. |
It looks like I was initially opposed to trying to parse those files in tracespace, but it's seeming more and more likely that it's a requirement for good Allegro support. I'm going to keep thinking about it and maybe add it to the pile of planned tracespace v5 features. If you are able to share any of your work parsing these files, I'd be curious to see it! |
Would add - it’s mostly the larger semiconductor manufactures using Allegro - since they have all the cadence tools (for IC and SIP design) and just don’t buy anything else for PCB design. |
For reference, here are links to gerbonara's Allegro tool definition parsing code: |
My current approach is to read the file line and then match if the layer'type is not matched by the file name. I'm currently testing as many open source gerber files as possible from the web, with various compression types and assorted suffixes. |
@mcous The test found that many gerber files have space problems, so I suggest whether it is possible to add space rules for the RE_TOOL_DEF: |
Adding to the reply of @shawon1220 , both gerbv and KiCAD's gerbview ignore all embedded spaces (gerbv, kicad). While ucamco's spec clearly forbids spaces embedded inside the actual gerber code, this is probably a sane policy also outside of aperture definitions as I can totally see broken software emitting illegal spaces e.g. inside of aperture macro definitions. Fun inconsistency: gerbv also ignores tabs and embedded null bytes (!), which AFAICT would make KiCAD justifiably choke. |
@mcous ,this gerber's drill layer svg incorrect,converter no width and height. I don't know what's causing it, hope you can help,thanks.
The text was updated successfully, but these errors were encountered: