I now changed the code to:
aeroAssembly.Set(
name='setPiezo',
elements=
aeroInstance.elements.getByBoundingBox(
150, 0-dtol, 22.56,
303.06, depthProfile+dtol, 30.01
))
# assign piezo section
partAerofoil.SectionAssignment(offset=0.0,
offsetField=''...