Is there a way to visualise the relation type an Item has with one of its descendants? I am trying to figure out the relation name and its type of an item revision with its BomView Revision.
Item Revision --(1)--> BOMView Revision
What is the name of (1)? Type of (1)?
Any way to get this information with the Rich Client visually and directly?
Programatically speaking; Is there a general way to get all the relations of an object with its descendants by calling expandGRMRelationsForPrimary and secondary? what filter do I have to set up in the preference to get all of them?
Solved! Go to Solution.
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4
Thanks for your guidance.
Inspecting the item I find the relation type (when using real names): structure_revisions. Also its name: BOMView Revision.
With this information in hand, I expand the relation by calling:
pref.info.otherSideObjectTypes = "BOMView Revision";
pref.info.relationTypeName = "structure_revisions";
This should 'theoretically speaking' expand the relation and return the relation to me but, due to some unknow reasons it does not.
Error Msg.: The relation type name is invalid.
(And yes, I also updated de policies)
There is, in fact, an alternative way to getting the relationship, by inspecting the Model Object properties and selecting the values under the name of "structure_revisions". This does indeed work.