There should be a function that replaces a solid body into a meshed and hollow structure with parametric mesh type and sizes.
A function that would take an FE mesh and replace all element vertex by joined beams of parametric size. It would allow to make optimized 3D printed parts. Like what is done by the cloud based meshify.dk It could even be the results from the your new optimization tool but instead of solid part, only use the nodes of the FE model and connect them with merged beams.
What would be interesting by recuperating the same kind of mesh than a FE mesh is that the lattice structure would follow curves of the model in order to have a constant stiffness rather than populating the structure with predefined X and Y oriented lattices.