Mailing list archives : pcb-rnd

ID:3565
From:cuvoodoo <pc...@cuvoodoo.info>
Date:Fri, 29 Nov 2019 16:40:06 +0100
Subject:[pcb-rnd] reversed missing layer export warning
replies: 3566 from ge...@igor2.repo.hu
in the CAM jobs, there is the option [okempty].
I don't know the exact intent or purpose of this attribute.
I think it is meant to warn if the corresponding layer is empty and/missing, and/or still export a file.
but in the current state the effect is plugin dependent.
 
for the excellon plugin:
an (almost) empty file will always be generated, even if there is no hole/slot, (u)route layer (group), or the okempty option.
when the okempty is absent, it will not warn even if there is no hole/slot (e.g. it is actually empty).
when the okempty is absent, it only warns if there is no (u)route layer (group):
 
excellon cam export for '%base%.xln=virtual(purpose=pdrill),virtual(purpose=udrill),mech(purpose=proute),mech(purpose=uroute)' failed to produce any content
 
the file is still exported.
with the okempty option present, it will not warn about the missing layers.
 
for the gerber plugin (only tested using JLC PCB CAM job):
it will only output a file when there is a line in the corresponding layer.
no empty file is generated for empty layers, even with the okempty option.
it will not warn if the layer is empty, even if okempty option is absent.
it will warn if the corresponding layer (group) is missing:
 
gerber cam export for '%base%.g%top_offs+1%l=intern-copper' failed to produce any content
 
with the empty option present, it will not warn anymore.
 
 
from my point of view, the okempty solution should (for all plugins):
- if present: always produce a file, even if the layer is empty and/or missing
- if absent: warn only if the layer is present and empty. it should not warn if the layer (group) is missing. it should not generate an output if the layer is empty (or missing).
 
for a more finer setting, there could be okempty and okmissing options, but that would make it cumbersome.
 

Reply subtree:
3565 [pcb-rnd] reversed missing layer export warning from cuvoodoo <pc...@cuvoodoo.info>
  3566 Re: [pcb-rnd] reversed missing layer export warning from ge...@igor2.repo.hu
    3705 Re: [pcb-rnd] reversed missing layer export warning from ge...@igor2.repo.hu
      3707 Re: [pcb-rnd] reversed missing layer export warning from pc...@cuvoodoo.info
        3708 Re: [pcb-rnd] reversed missing layer export warning from ge...@igor2.repo.hu
          3734 Re: [pcb-rnd] reversed missing layer export warning from pc...@cuvoodoo.info
            3738 Re: [pcb-rnd] reversed missing layer export warning from ge...@igor2.repo.hu