hexagon logo

How can I retrieve the current open model's variant using command language?

I'm developing a macro that runs a combination of SPMM events, and I need the model name and variant of a currently open model. I know I can retrieve the model name via (EVAL(DB_DEFAULT(system_defaults, "model""), but I can't do the same to get the variant of the currently open model, and the variant doesn't exist as a database element.