I need a report that creates a FAD & Role diagram in context of choosing an EPC Model. The FAD & Role diagram should be in the same name of the EPC Model.
I found the solution as shown below:
// for the FAD model
var SelectedModels = ArisData.getSelectedModels([13])[0].Group().CreateModel (14,ArisData.getSelectedModels([13])[0].Name(-1),-1);
// for the role diagram model
var SelectedModels = ArisData.getSelectedModels([13])[0].Group().CreateModel (146,ArisData.getSelectedModels([13])[0].Name(-1),-1);