[CE U13 C#] XAttributeChangedEvent XAttribute.ID wrong value

With Update 13, the XAttributeChangedEvent now has the XAttribute Property but

eventArgs.XAttribute.ID
eventArgs.XAttribute.HandlerId

both give me the same value 0x17010000.
I've created the Element in V8i and used it for CE.



With V8i I can look at the xAttribute directly, like in the Screenshot but with CE this is not possible.


There is a workaround for this over native and there I get the right values I look for.

XAttributeHandle XAttrHandle = XAttributeHandle(p_ElemRefIn, h_XAttr, XAttributeHandle::MATCH_ANY_ID);
UInt32 un_XAttrId = XAttrHandle.GetId();


I do not know what happens with multiply xAttributes.


Switching from manged to native takes some time. Also we don't get the xAttribute completly from the Event and only can guess what xAttribute caused the Event. This workaround might work for most cases but most is not all.

Is there a better way or is that way good enoug until Bentley fixes it?

Parents Reply Children
No Data