Hi,
I try to write a footprint wizard for capacitive touchpads in python. Due to the it’s 2D shape I need to cross some pad shapes using a vias and a bottom layer connection. I wrote the following for pad generation:
def smdRectPad(self, size, pos, name, orientation = 450, layer = F_Cu):
pad = D_PAD(self.module)
pad.SetSize(size)
pad.SetShape(PAD_SHAPE_RECT)
pad.SetAttribute(PAD_ATTRIB_SMD)
pad.SetLayerSet(pad.ConnSMDMask())
pad.SetLayer(layer)
pad.SetPos0(pos)
pad.SetPosition(pos)
pad.SetPadName(name)
pad.SetOrientation(orientation)
but no matter if layer is set to F_Cu or B_Cu the generated output in the wizard does not change it’s layer.
Any ideas what I need to change on this method?