Hello Community,
although I have used Aris for a while, I am still a bit confused about the difference between Object and Object Occurence. As for my understanding, object is just an object. If the object occurs once in an model, then the object has occurence, which is the object in the model. Do I understand the difference in the right way?
I have also seen a function ObjDef() to acquire object definition from object occurence. Is there any function that works in the opposite direction, which means acquire ObjOcc from ObjDef? Function in both macro and report will be helpful.
Thanks in advance!
Take a look into the ARIS Script help pages: /abs/help/en/script/ba/index.htm#report_OBJECTS_ObjDef.htm
OccList ( )
Returns a list of all object occurrences.
Returns a list of all object occurrences in the specified model.
OccListInModel ( Model Model )
Returns a list of all occurrences of the object in the specified model.
OccList() gives you all occurrences of the object in all models.
OccList(Model[]) gives you all occurrences of the object in the array of models you pass to the method
OccListInModel(Model) gives you all occurrences of the object in a single model you pass to the method.
In Macros it is
Designer.getOccs ( ConnectableDef connectableDef )
Returns all occurences of a given connection or object definition.
See also ARIS Script Help at /abs/help/en/script/ba/index.htm#macro_OBJECTS_Designer_getoccs.htm