Index: boxsym-rnd/generator.awk =================================================================== --- boxsym-rnd/generator.awk (revision 2772) +++ boxsym-rnd/generator.awk (revision 2773) @@ -25,7 +25,7 @@ return cnt } -function draw_pin(pin, ST, slotidx, SLT ,x2,y2,pname) +function draw_pin(pin, ST, slotidx, SLT ,x2,y2,pname,pnum) { x2 = ST["x"] * pin_grid y2 = ST["y"] * pin_grid @@ -32,8 +32,14 @@ pname = pin sub(/^.*::/,"", pname) + + if (slotidx != "") + pnum = SLT[slotidx] + else + pnum = PIN[pin, "num"] + dbg("draw_pin(): pname=" pname " dir=" ST["pdir"] " at " x2 ";" y2) - sym_term(SYM, x2, y2, ST["pdir"], PIN[pin, "num"]) + sym_term(SYM, x2, y2, ST["pdir"], pnum) } # draw pins of a given slot:loc, with first pin touching the box at x0;y0