Page 1 of 1

Mirrored elements in save_lattice

Posted: 09 Apr 2026, 04:57
by michael_abo-bakr
Hello,

while using save_lattice I realized that "mirroring" of elements seems to get lost.

To use lattice symmetry I split a bend in two halfs instead of one single element:

B:CSBEND, L="LBEND", Angle="ABEND", E1="ABEND 2 /", E2="ABEND 2 /"
-->
BH:CSBEND, L="LBEND 2 /", Angle="ABEND / 2", E1="ABEND 2 /", E2="0"
B:Line(BH,-BH)

In the saved lattice the minus is disappeared and B is BH,BH instead of BH,-BH. This matters of course only for (the few) "asymmetric" elements. But split bends with unequal edges are used quite often and the user should be aware that asymmetric elements are not mirrored in saved lattice.

Hope not to repeatedly report this observation ...

Best regards, Michael

Re: Mirrored elements in save_lattice

Posted: 16 Apr 2026, 11:57
by michael_borland
Michael,

I confirmed this bug for &save_lattice with output_seq=1 and will look into fixing it. If you can use output_seq=0, that works as expected.

--Michael

Re: Mirrored elements in save_lattice

Posted: 13 May 2026, 17:55
by michael_borland
Michael,

This should be fixed in the latest release (2026.2)

--Michael