Metaprogramming using eval and struct: BUG getting UndefVarError: not defined

You are correct, it is the downside of the method. :disappointed:
If you have a method to create struct on the fly that will be great. My challenge is that some parameters are vectors.