Open kr15h opened 9 months ago
Noticed while making a board and placing vias. I have some components flipped on the back side of the board and I want to position vias relative to the pads there, but the returned positions of the pads are those of an unflipped component.
Say I have the following.
const batt_holder_left = board.add(batt_holder, { translate: pt(battOffsetFromLeftEdge + battClipOffset, height/2), rotate: 0, label: "batt_holder_left", flip: true })
And then I do this (given that the component has two pads labeled 1_1 and 1_2).
1_1
1_2
const viaB = board.add(via(viaHoleDia, viaRingDia), {translate: pt(batt_holder_left.padX("1_1"), height/2), label: 'V2'});
The resulting position will be where pad 1_2 is.
Noticed while making a board and placing vias. I have some components flipped on the back side of the board and I want to position vias relative to the pads there, but the returned positions of the pads are those of an unflipped component.
Say I have the following.
And then I do this (given that the component has two pads labeled
1_1
and1_2
).The resulting position will be where pad
1_2
is.