SEQ:SEQUENCE,L=79.00; B1: B, AT=19.115; SF1: SF,AT=37.42; QF1: QF,AT=38.70; B2: B, AT=58.255; SD1: SD,AT=76.74; QD1: QD,AT=78.20; END; B2W:B2,ANGLE=0.1*B2->ANGLE; EDIT,SEQUENCE=SEQ; MOVE,ELEMENT=SF1,TO=-1.27,FROM=QF1; MOVE,ELEMENT=SD1,BY=0.01; REPLACE,ELEMENT=B2,BY=BS2; END,NAME=NEWSEQ;This example moves the two sextupoles and replaces the element B2 by the element B2W. The effect of the above REPLACE command is equivalent to
INSTALL,ELEMENT=B2W,AT=0,FROM=B2; REMOVE,CLASS=B2;In this example a new element B2W is installed at the position of B2 and the the latter is removed. This works, since all positions are evaluated to constants immediately.