Hi,
I am working on a report (script) to list models, objects and all assigned models to def&occ objects within the listed models. I know I should be using the AssignedModels() method but can't seem to make it work. Any examples of how to use it in the script.
Thanks,
Nicolas
Hi,
could be something like this (recursive call):
function OutputAsgnModels(oMainObjDef){
oAsgnModelList = oMainObjDef.AssignedModels()
for (i=0; i< oAsgnModelList.length; i++){
oAsgnModel = oAsgnModelList[i];
oObjOccList = oAsgnModel.OccList()
for (j=0; j < oObjOccList.length; j++){
oObjOcc = oObjOccList[j];
oObjDef = oObjOcc.ObjDef();
// output oObjDef or whatever
OutputAsgnModels(oMainObjDef)
}
}
}
BR Robert