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:
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?
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.
Labyrinth Technology | dev.notes() | cad.point