[Connect | V8] [C# | C++ SDK] Finding Xattributes quickly and selectively, without the detour via "search element"?

To work with Xattributes, you need an ElemendHandle whether you work in managed or native code.

 

But what will be best practice to find some elements in such a case:

  • DGN with some several thousand elements
  • Some 3% elements with Xattributes
  • Some 20% of these have an interesting XAttributeHandlerId

The typical workflow: “scan for elements” -> “test for X-Attributes” -> “find XAttribute with XAttributeHandlerId” -> “analyses X-Attributes” will take its time.

 

Would it not be much faster, to scan through the Xattributes-cache for fitting XAttributeHandlerId?

Parents
  • It would be nice to know a solution or best practice, in my opinion because XAttributes are often used (and not always they can be simply replaced by EC data), to search in direction XAttribute > element (and sometimes the element is not necessary) would be helpful.

    I found this discussion about for V8i, is there any change in CONNECT Edition? Or e.g. specific cache that can be used to iterate for XAttributes (I have to admit I have not tried whether XAttributes can be reached through ControlElement or Dictionary sections in DgnFile.

    Regards,

      Jan

Reply
  • It would be nice to know a solution or best practice, in my opinion because XAttributes are often used (and not always they can be simply replaced by EC data), to search in direction XAttribute > element (and sometimes the element is not necessary) would be helpful.

    I found this discussion about for V8i, is there any change in CONNECT Edition? Or e.g. specific cache that can be used to iterate for XAttributes (I have to admit I have not tried whether XAttributes can be reached through ControlElement or Dictionary sections in DgnFile.

    Regards,

      Jan

Children
No Data