EC data dependencies

How can I programmatically find which field from ECClass correspond to some real EC data on object.  In .Net I can use Elemennt.GetDependants() to find connected textnodes, but I don’t know how extract information that this text or some part of text is field from some EC property and and which key belongs to this field? 

In old fashion way in tags is simple extract to which element is tag connected and which tag-definition from which tagset represents. 

Something similar I expect with fields is it possible?

Miro

Parents Reply
  • From a TextBlock you can obtain a Caret, which is an iterator over the contents of the text block.

    From a Caret, you can obtain a TextField.

    Unfortunately, the published SDK is rather stingy regarding what it will allow you to do with a TextField once you've obtained one. This is in part due to backwards-compatibility with EC fields create in v8i - of particular relevance to your question, such fields do not store an ECSchema name.

    So it sounds like you will need some enhancements to the published SDK:

    1. Make TextField::FindTarget() available. This returns an ECInstance from which you can obtain ECSchema+ECClass.

    2. Make TextField::GetAccessor() available. This returns the property access string.

    If you have further requests in this area please specify them.

Children