How to obtain Objects References

Unofficial Content

To get Object references use the GetReferences or GetReferenceTo methods from the KBObject reference, for example:

using Artech.Architecture.Common; // for KBObject, etc.
using Artech.Udm.Framework.References; // for EntityReference, etc.

KBObject OBJ = …;

foreach (EntityReference REF in OBJ.GetReferences()){
/* use: REF.From; REF.To; REF.ReferenceType; REF.LinkType; etc.*/
}

foreach (EntityReference REF in OBJ.GetReferencesTo()){
/* use: REF.From; REF.To; REF.ReferenceType; REF.LinkType; etc.*/
}