Use sketch

Is there any way ,we can project (using convert entities)sketch from a pattern.
Here number of instances in pattern are varying.

to give an example
We have a prt in which a pattern of holes with 6 instances existand on the other mating part these holes should appear related tothe number of holes automatically.SolidworksAssemblies