def METHOD_NAME( fp, layer, level, types=None, pgd=None, pitch=None, cLayers=None):
    fp.write( "Layer name=%s" % layer)
    if pgd is not None:
        fp.write( " pgd=%s" % pgd)
    fp.write( " level=%d {\n" % level)
    if types is not None:
        for ty in types:
            fp.write( "   Type value=%s\n" % ty)
    if pitch is not None:
        fp.write( "   Technology pitch=%d\n" % pitch)
    if cLayers is not None:
        for ly in cLayers:
            fp.write( "   ElectricallyConnected layer=%s\n" % ly)
    fp.write( "}\n")