On Sun, Oct 31, 2004 at 09:18:25AM -0500, Stuart Brorson wrote: > Todays whine is this: According to the PCB documentation, "all distances > and sizes in Pcb are measured in mils (0.001 inch)." However, after > editing my *.pcb file to set the board size and grid spacing, I found that > these parameters are specified in the file in units of .01 mils. That is, > a 1" x 1" board is specified in the .pcb file by:
units are 1/100 mil internally. In the files, () signifies mils and [] signifies 1/100 mil. > PCB["" 100000 100000] > > A similar situation holds for Grid & Cursor. > > I did a quick grep through the source. Yep, in parse_y.c, we have > constructs like: > > parse_y.c: yyPCB->GridOffsetX = yyvsp[-2].number*100; > parse_y.c: yyPCB->GridOffsetX = yyvsp[-3].number*100; > parse_y.c: yyPCB->GridOffsetX = yyvsp[-3].number*100; > parse_y.c: yyPCB->GridOffsetX = yyvsp[-3].number; > > (BTW: What's up with the fourth line?) The first 3 are reading older file formats where the resolution is 1 mil and converting to the new internal 1/100 mil resolution. The last is for reading a hi-res value which is already in 1/100 mil. -Dan --
