Fails to load .gdo gerber files
See original GitHub issueTried to upload a set of Gerber Files exported from Mentor PADS (extension .gdo).
Error I get is: Uncaught TypeError: Cannot read property 'type' of undefined
from _pad-shape.js:239
Those few lines of code:
var runMacro = function(mods, blocks) {
var emptyMacro = {shape: [], box: boundingBox.new()}
var exposure = 1
blocks = blocks || []
return blocks.reduce(function(result, block) {
var shapeAndBox
if (block.type !== 'variable' && block.type !== 'comment') {
Line 239 is the last line^, looks like block
is undefined… not sure if there needs to be some type of parsing adding for Mentor files, or if there just needs to be a check that returns from the function if block===undefined
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Gerber Files Fail to Load - V-One - Voltera
If your files fail to load, it's very likely that the Gerber files don't conform to the gerber standard. Check your export settings...
Read more >Common Gerber File Issues, and How to Fix Them - Bittele
1 – Missing Board Outline The board outline is perhaps the most simple and straightforward piece of your Gerber files, but it is...
Read more >Developers - Fails to load .gdo gerber files - - Bountysource
Tried to upload a set of Gerber Files exported from Mentor PADS (extension .gdo). Error I get is: Uncaught TypeError: Cannot read property...
Read more >Some Gerber files do not load | Flatcam - Muut
More importantly, it does not allow copper removal, which is sometimes very handy. So I installed Alpha 5 on my Windows machine and...
Read more >Gerber Output Problem - KiCad.info Forums
The problem may be in files you did not submit. You might try them on the Reference Gerber Viewer and see if it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kasbah Adding that check prevents the error and allows the gerbers to render. Now the issue is that the gerbers are rendered slightly incorrectly (but this is at least better than the code breaking!)
I have found the issue for my gerber set – the gerber specifies G74* (Disable 360° circular interpolation (single quadrant)) When I change that to G75* (Enable 360° circular interpolation (multiquadrant)), the Gerber renders correctly. Maybe this is something that needs to be added into Gerber Settings? I’ll look into how easy that is and if I can just make a PR.
Ah yeah you’re correct, I think #82 is the more relevant one. I emailed you & @kasbah the files for this issue if you wanted to take a closer look.