The first step in AT is to build the lattice structure. Or if it is already built, then simply load it.
To aid with the building of correct lattice structures, element creation functions are provided.
Here is an example of a script that strings together many element creation functions to produce a double bend achromat lattice structure.