&save_lattice
STRING filename = NULL;
long output_seq = 0;
&end
filename -- The (incomplete) name of a file to which the element and beamline definitions
will be written. Recommended value: ``%s.new''.
output_seq -- If non-zero, the lattice will be saved as a single beamline sequence.
Elements used for the beamline are re-arranged according to their type. Note:
sub-beamline definitions in the original lattice file will be destroyed from the output file.
This feature is intended to be used
together with insert_elements and replace_elements.