Hi Kai-Martin, On Dienstag, 22. September 2009, Kai-Martin Knaak wrote: > Sometimes, gschem nets shows an annoying tendency to snap to a not so > near node. Is there a way to tune the distance at which the gschem > net snaps?
This is a hardcoded feature ;-) It's not possible to change this with configuration variables. Imagine the possible snapping objects for the nets are magnets. The magnet of the pin is stronger than the magnet of the bus or another net. The relative strength of the magnets is defined in the top section of gschem/src/o_net.c: ------- /* weighting factors to tell that a pin is more important than a net */ #define MAGNETIC_PIN_WEIGHT 5.0 #define MAGNETIC_NET_WEIGHT 2.0 #define MAGNETIC_BUS_WEIGHT 3.0 -------- If you like equal strenght, you have to set all WEIGHT constants to the same value. A second set of constants controls, how far away an object can be to activate the snapping: --------- /* define how far the cursor could be to activate magnetic */ #define MAGNETIC_PIN_REACH 50 #define MAGNETIC_NET_REACH 20 #define MAGNETIC_BUS_REACH 30 --------- Regards Werner _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user