Welcome to these Forums!
That sounds like it should be doable, but so many questions arise....
What about distance(s) from plate edge(s) to hole center-lines? Would the User specify that [or those?], or would that/they be just what's left over as a result of the number of holes and their spacing?
All holes always the same size in each plate, or might there be different sizes within one plate?
Always equally spaced holes? If so, the same in both directions, or equally within each direction but possibly different in the two directions?
I think [from my experience with such things, limited as it is] I can assume it will always be an even number of holes. But would they always be in two rows down opposite edges, or might there sometimes be configurations such as this?

Always only around the edges like that, or might there sometimes be any internal hole(s)? [In which case, the number might be odd....]
A sample drawing or image showing the extremes of the range of possibilities would be helpful.
Meanwhile, since you say "I need to write" [always a welcome thing here], may we assume you already know enough to write some of the starting elements? Prompts for the inputs, and saving them into variables, etc. People here can help you with ways to create the plate outline and calculate what's needed to place the holes from there.
Kent Cooper, AIA