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!

Torsten Haase on
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