Hello all,
Is it possible to gnerate a variant in DCWorksheet by scripting?
In my case, I have a DCWorksheet with variants and I want to clone/transfer these variants into another DCWorksheet.

My understanding is that I should generate a variant object (Metamodel.FMEA.Variant) in to the DCWorksheet scope. But I can't see something in the factory.js for this purpose.
I assume there is another approach for variants than for safety goals, because safety goals are "globally" available whereas I assume that variants are "local" to DCWorksheet.
Do I miss something here?
Best regards,
Michael
PS: I still have 2022R1. Maybe this could be some source of problems.