AnsweredAssumed Answered

Setting a reference type from using PI-AF SDK

Question asked by Chris_Hawkins on May 20, 2016
Latest reply on May 25, 2016 by Chris_Hawkins

With advice from several others some weeks back I learnt how to determine the reference type using PI-AF SDK for a element paring (as I have various uncle-nephew as well as parent-child relationships). To begin with I created these by dragging the elements aroud the AF browser tree. I now wish to aslo create the relationships programmatically. I've had a brief look through the documenation but haven't found what I'm looking for.

 

So what I have would be the follwongs pairings:

 

parent-child (as in the basic tree heirachy)

uncle-nephew (where nephew here would be the child above)

 

I guess I'm looking for a method something like SetDataReference(parentElement, childElement, DataReference)

Outcomes