I am runnig one report on one VAC's L3 object.
how can I extract parent model name of this VAC object?
I tried with extraction subordinate relationship of this L3 object but the problem is I have more than one sub ordinare relationship with this object and I want to extract only the current model name in which this object is present.
var all_L2=current_L3_object.getConnectedObjs([Constants.OT_FUNC],Constants.EDGES_IN,[Constants.CT_IS_PRCS_ORNT_SUPER]);
here I am getting 6 value in all_L2 variable. I need only one.
please help if anyone know about this it's little bit urgent.
Thanks in advance :)
Let me know if you need more information related to this query.
Regards,
Ankit
Hello Ankit,
I understand you have an object definition at hand. If you want to know anything about the situation in a model you have to look at the occurrences of the object in the particular model.
The API offers the method OccListInModel(Model model).
So say you have the current VAC model myVAC, then write something like
var current_L3_object_Occs = current_L3_object.OccListInModel(myVAC);
This gives you a list of the Occurrences of current_L3_object in your VAC. From there you can work your way through the occurrences of connections to other occurrences of other objects, much like you would on the definition level.
M. Zschuckelt