kicad-developers team mailing list archive
Mailing list archive
Re: [Bug 1176915] Re: problem with gerber files
Le 06/05/2013 22:01, Lorenzo Marcantonio a écrit :
On Mon, May 06, 2013 at 03:09:12PM -0400, Wayne Stambaugh wrote:
is the case. My guess that the units for linewidth plot setting is
either mils or decimils. I don't think we ever intended for nanometer
values to be saved in files. If I knew what units the linewidth setting
is supposed to be, the fix would be easy. The comment in the header
file doesn't specify the units.
Other plot widths are in decimils, the default plot line width is copied
by default from the global line width which is in BIU (from whence BIUs
were decimils). The easiest way
out would be storing the default plot width in decimils (breaking
existing files, not really a tragic thing); the clean solution would be
passing the unit for the current file to the pcb option parser and doing
there the conversion.
I'd vote for decimils plot line width. In fact the default width is only
used for the sheet border, all the other stuff has default widths.
linewidth plot setting is stored in file in BIU (should not, because all
values are stored in mm (and very few in mils), no more in decimils).
It is constrained in pcb_plot_params (PCB_PLOT_PARAMS::SetLineWidth),
but the minimal value is 0.
Perhaps this minimal value is a bad choice.