import geompy

nbX, nbY = 25, 20
p1 = geompy.MakeVertex( -10, -10, 10 )
p2 = geompy.MakeVertex( nbX*20, nbY*20, 20 )
plate = geompy.MakeBoxTwoPnt( p1, p2 )

cyl = geompy.MakeCylinderRH( 5, 30 )
vecX = geompy.MakeVectorDXDYDZ( 1, 0, 0 )
vecY = geompy.MakeVectorDXDYDZ( 0, 1, 0 )
cyl500 = geompy.MakeMultiTranslation2D( cyl, vecX, 20, nbX, vecY, 20, nbY )

partition = geompy.Partition( [plate], [cyl500] )

perforatedPlate = geompy.GetShapesNearPoint( partition, p1, geompy.ShapeType["SOLID"])
geompy.addToStudy( perforatedPlate, "perforatedPlate" )
