Index: boxsym-rnd/generator.awk =================================================================== --- boxsym-rnd/generator.awk (revision 2802) +++ boxsym-rnd/generator.awk (revision 2803) @@ -75,8 +75,9 @@ return } - if (ST["x"] == "") ST["x"] = x0 + ALIGN[loc, "x0"] - if (ST["y"] == "") ST["y"] = y0 + ALIGN[loc, "y0"] + ST["x"] = x0 + ALIGN[loc, "x0"] + ST["y"] = y0 + ALIGN[loc, "y0"] + ST["pdir"] = loc for(n = 0; n < SLOT[slot, "npins"]; n++) { pin = PINS[slot, n] @@ -105,8 +106,8 @@ # x0 y0 stx sty draw_pins(sn, ALIGN, "left", -border, 0, +0, +1) draw_pins(sn, ALIGN, "right", bw+border, 0, +0, +1) - draw_pins(sn, ALIGN, "top", border, -border, +1, +0) - draw_pins(sn, ALIGN, "bottom", border, bh+border, +1, +0) + draw_pins(sn, ALIGN, "top", border, bh+border, +1, +0) + draw_pins(sn, ALIGN, "bottom", border, -border, +1, +0) } function align_calc(ALIGN, loc, boxloc, target_field, how ,diff)