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 Mangesh.Shelar has some hints? ;-)
With regards,
Jan
Just a note: I found a source of some exceptions can be cause not by the partial loading, but by difference between casting to IDgnECInstance or IECInstance.
But, to the question what "IsPartiallyLoaded" means still remains ;-)
Regards,
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point