TL
I am trying to create a model of a spesific model. I have the model object, but can not figure out how to create a new modell of this model that is a variant and with all the same objects as the original model, can anyone please help?
kind regards tl
Hi!
You can create a variant of a model by a report script the following way:
var model = ArisData.getSelectedModels()[0]; var mergeComponent = Context.getComponent("Merge") var result = mergeComponent.createVariant([model], model.Group())
You can find a description of the Merge component in the ARIS script help:
Help -> Aris Script -> Methods for reports and semanticchecks -> Objects -> Report component interfaces -> Merge