I had the exact problen with a D170 a short while ago. I matched my blown engine with https://www.brandnewengines.com/
I bought their 1 x 3-5/32 #49S877-0019 and fit perfectly. Contact them, and they will assure you match your engine.
I tested the starter Solenoid, and found it to be defective. Either I inadvertently shorted it out, or it died of old age. Regardless, I've ordered another. We'll see what this will do.
Makes no sound at all when turning the key to start.
Did not touch anything electrical
I'm trying to figure out how to test the solenoid. gave been watch some videos on that subject
ok, GOT IT.
Doesn't crank. checked all the connections again, new battery fully charged. put multimeter on connections, shows full power.
Does that help?
just replaced the engine on my D170. Now it will not start. New engine is the proper replacement engine for this lawn tractor. All connection fit exactly. I'm at a loss for what is wrong.