Roger Palmen

Indentifying reference type between Parent and Child elements

Discussion created by Roger Palmen on Dec 25, 2012
Latest reply on Dec 26, 2012 by Roger Palmen

Dear all,


During some programming, i ran into the following issue. I want to check what the relation(s) are between two elements. To try and achieve that, i use the following code:

AFNamedCollectionList afRefTypes;
afRefTypes = childElement.GetReferenceTypes(parentElement);

(note that the code formatter drops the <> from the line: AFNamedCollectionList<AFReferenceType> afRefTypes;


 But unfortunately, the returned collection is empty while the two elements do have a Parent-Child relationship. Any hints?