Is
this the spoonflower you're referring to?
From what I can see they merely take a graphic and print it to fabric.
If I understood you correctly the first time, what you want to do is create a script to do what
this website charges for.
What I have in mind here is to design a single piece of software that can take parameters from a pattern file, combine that with measurements input by the end user and output the result.
This is a better way than separate scripts for each pattern.
It would be easier to write a few scripts if you only have one or two patterns, but you'd need to write a new script for each new pattern and that's re-doing work that you've already done.
By starting with a base program that reads a configuration file, you get a true CAD application that others can contribute to even if all they can contribute is a few patterns.