No, I haven't needed to, but I would recommend using a breaker bar and or cheater before throwing an impact wrench on my tranny. If you do use an impact wrench , I recommend you have the bike in neutral.
yes the motor will not hold the transmission against 30-40 ft lbs of torque which is what you will need at the least. leave bike in neutral. Then just use the old bar through the spokes across the swingarm trick. I have heard some hang a weight from the rear brake pedal to hold the wheel stationary but I can't see any reason to chance that either. Bar thru spoke aX swingarm which has been padded with rags. fool proof. (no offense

) Try a 1/2 inch drive ratchet. If no worky, you go Autozone, get BIG bar!! be very careful you do not lift the bike off the rear stand.
You should use a rear stand for this.
Also, you can just slide an old pipe over the handle of a wrench instead of using a breaker bar but by the time you get a pipe, might as well spend the $12 and get a real bar with square drive.
OH....also really should be using black metal impact socket for this. A ordinary steel could possibly split under heavy torque....prolly not one the size of the countershaft nut but there is a reason they make black metal sockets. I use them for the tough jobs.