I think the greatest issue with true machine production is the material itself. Master kiltmakers are true artists when it comes to just HOW they pleat a tartan.

That kind of judgment ISN'T binary, while some tartans can be broken down to pure maths, others require a "show the red stripe/ white/ gold" call to be made. Barb T has some very informative posts describing HOW the actual pleat depth can vary depending on just which part of the tartan you're pleating to.

It would be a VERY expensive machine indeed.

IF nobody cared about how the tartan was pleated, IF nobody cared about inside stitching I think it could be done.

Otherwise, you've got a MOUNTAIN of programming to do.