Dear all,
I need to create a new Group in context of a selected current group.
Then, I need to create a new Model (EPC) under new Group.
Thanks in advance for your help.
Best regards,
José Camacho
Hi Francois,
Thanks a lot for your help.
Meanwhile, I need to build a report to do as following:
1) Read a EPC model ordered by objects in the sequence of modelling (topologic way);
1.1) Create a EPC model assigned by each function got from the input EPC.
The idea is to create a hierarchy from EPC model as input to detailed EPCs as output.
Thanks in advance for your help.
Hi Dr. José,
So you required yo create a new model in a new group under the selected Group.
Following code shows how to create subgroup and then the model (EPC) in the new group under the first group you have selected as context.
--------------------------------------------------------------------------------------------------------------------------------
var oSelectedGrp = ArisData.getSelectedGroups();
var localeID = Context.getSelectedLanguage();
var oGroup = oSelectedGrp[0].CreateChildGroup("<group name>", localeID );
var oNewModel = oGroup.CreateModel(Constants.MT_EEPC, "<model name>", localeID);
--------------------------------------------------------------------------------------------------------------------------------
This is a sample code, you can modify it according to your need.
Sorry for hard coding above, code snippet function not working here.
Regards,
Vinay
Hi Mr. Vinay,
Thanks a lot for your help.
Meanwhile, I need to build a report to do as following:
1) Read a EPC model ordered by objects in the sequence of modelling (topologic way);
1.1) Create a EPC model assigned by each function got from the input EPC.
The idea is to create a hierarchy from EPC model as input to detailed EPCs as output.
Thanks in advance for your help.
Best regards,
José Camacho