PP
Hello,
I got a list of models using the class Group ModelList ( boolean bRecursive, int[] typeNums, ISearchItem p_searchSpec ).
How is it possible to get all superior models for each model of the list?
Any help appreciated.
Thanks a lot.
Patrick
Hello Patrick,
Superior Models? You cannot get superior models directly from those model list. You will have to take 3 steps to collect all superior models for all your model list.
Follow the following steps for each model
1. Get the superior objectDef of the model
Model.SuperiorObjDefs();
2. Get all occurrences from the database for the superior object
ObjDef.OccList ( );
3. Collect the models in which those object occurrences occur.
ObjOcc.Model ( );