Hi community,
I'm working on a script in which I need information from a higher level model. I see the model listed in the "Connected models" tab of Properties, but I am having trouble discovering the code needed to access the list of connected models from the selected Model object using Aris Script.
Help is much appreciated!
Hi Gerard,
you can access the superior models (which are models containing objects which have this model assigned) in 4 steps:
1. Model.SuperiorObjDefs() --> ObjDef[]
2. for each of the result ObjDefs: ObjDef.OccList() --> ObjOcc[]
3. for each of the result ObjOccs: ObjOcc.Model()
4. make the list of your collected result models unique using models = ArisData.Unique(models)
BR, Torsten
I noticed this approach uses model relationships.
Is it possible to obtain relationships as defined in a matrix model? E.g. I would like to get obtain relationships from a BPMN model object to a Function Tree model object that is correlated in a Matrix Model.
Thanks in advance for any pointers.
MR