[MStn CE U16.2 C#] How to load (partially loaded) EC instance?

Hi,

this is not a report of bug or blocking issue, I guess it's standard EC API feature, but I do not find any recommendation or best practices.

Situation: I iterate IECRelationshipInstance collection obtained using IECInstance.GetRelationshipInstances() method. For every instance, I there are Source ana Target properties, pointed to linked EC instances. I found that these instances have IsPartiallyLoaded == true and when I tried to access some features, exception is raised.

My question is when linked instance is received, how it can be "loaded"? In some discussions (typically about OpenPlant, like this one) I found that DgnUtilities.FindInstancesAndLoadRelated exists in the product API, but not available in standard MicroStation EC API. Should such partially loaded class loaded again, using e.g. ECManager? What is recommended way?

Maybe has some hints? ;-)

With regards,

  Jan

Parents Reply Children
No Data