Automate option for unbending of the hose pipe

Is it possible to unbend the pipe just by using any command in CATIA V5?