[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Changing grids in pcb
On Jun 29, 2009, at 6:28 PM, DJ Delorie wrote:
>
>> Wouldn't you just use set grid with the -+ for increment and process
>> units?
>
> No. If you had a list of grid settings you used, then +- means
> stepping through the list, not arithmetic changes. Consider my grid
> choices:
>
> { "0.1 mil" checked=gridsize,10 SetUnits(mil) SetValue(Grid,10)}
> { "1 mil" checked=gridsize,100 SetUnits(mil) SetValue(Grid,
> 100) an={"G1" "<Keys>g1"}}
> { "5 mil" checked=gridsize,500 SetUnits(mil) SetValue(Grid,
> 500) an={"G2" "<Keys>g2"}}
> { "6.25 mil" checked=gridsize,625 SetUnits(mil) SetValue(Grid,
> 625) an={"G3" "<Keys>g3"}}
> { "10 mil" checked=gridsize,1000 SetUnits(mil) SetValue(Grid,
> 1000) an={"G4" "<Keys>g4"}}
> { "12.5 mil" checked=gridsize,1250 SetUnits(mil) SetValue(Grid,
> 1250) an={"G5" "<Keys>g5"}}
> { "25 mil" checked=gridsize,2500 SetUnits(mil) SetValue(Grid,
> 2500) an={"G6" "<Keys>g6"}}
> {" 50 mil" checked=gridsize,5000 SetUnits(mil) SetValue(Grid,
> 5000) an={"G7" "<Keys>g7"}}
> {"100 mil" checked=gridsize,10000 SetUnits(mil) SetValue(Grid,
> 10000) an={"G8" "<Keys>g8"}}
>
> There's no math that will get you through that list reliably.
>
> Plus, the other problem is changing the mapped actions according to
> the inch/mm setting.
>
I Must have not been clear, I did not mean to do math to set grid
sizes, but only to add one action that uses our standard +/- value,
unit notation,
as described at the beginning of Appendix F
not to have three new actions.
But i think i see where your coming from, up is the next larger and
down is the next smaller grid size in the list, I had read up/down as
increment/decrement
>
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user