Save the sequence of commands

 Is it possible to save the sequence of commands that have been used in a drawing?