This is true, they are the product of a production line. However there are often slight differences between the same model boats and this could cause an expensive error.
Thinking about it now, one problem I can imagine encountering is the exact location of the strut. I can think of several minor differences in exact hull shape which COULD cause a slight difference in the strut location and hence a difference in the shaft length. Again, all possible slight differences.
Replacing the shaft is a major undertaking due to any number of corrosion situations you will encounter. You would also be replacing the cutlass bearing sleeve which is more time. Replacing the transmission coupling is also very likely depending on the corrosion back there. Take a look here to get some idea of how much work goes into just this one small ancilliary detail:
The Cutlass Bearing Replacing a cutlass bearing is not a tough project but does require some thought. On some boats the bearing is inside the dead wood making replacement more of a task than when it's mounted in a strut. These
marinehowto.com
For the shaft replacement see here:
Cutlass Bearing Removal Every now and then a sailboats prop shaft needs replacing. Damage to the shaft can be caused by corrosion, bending or wear at the stuffing box or cutlass bearing surfaces. On many boats the removal
marinehowto.com
How about dropping the rudder to accomodate the shaft? Removing the prop which will not come off to save your soul ? Lapping in the old prop on the new shaft ? Maine covers all that as well.
Odd, don't you leave your boat on stands when bottom painting or anything more than 1/2 hour for an inspection and zinc change ? Here, that's the max time you can tie up the lift. How do you paint under the slings ?
View attachment 174697
There are numerous things you can plan and prepare, before the boat is out of the water. When and IF I were ever to do this work on my boat, I would plan for roughly a week between out and back in. And that includes harassing the machine shop to get off their bloody duffs and get to work on fitting up the new shaft

.