Is there a flatten script?

 From:  Matadem
10971.1 
Good day.

Is there such as a flatten script?
usually when I draw 3d in combination with 2d the curves are not aligned and I have to switch views to flatten so I can join the curves.

If there something available so I can add a shortcut to flatten quickly would be great.

Thanks!