[CONNECT, C++] Read XAttribut values

Hi

I would like to read some XAttributes values from elements. The values is listed In the element information window (please see the attached screendum). I've attached a design file with just a few elements with XAttributes. In V8i I could read this information via XMLInstanceAPI but I can't figure out how to read it in Connect. Until now I got this:

        XAttributeHandlerId handlerId = XAttributeHandlerId(0, 0);
	XAttributeCollection col = XAttributeCollection(elmRefIn, handlerId);
	int count = 0;
	XAttributeCollection::const_iterator iterEnd = col.end();
	for (XAttributeCollection::const_iterator iter = col.begin(); iter != iterEnd; ++iter)
	{
		(*iter).GetHandlerId();
(*iter).GetId()); (*iter).PeekData(); count++; }

I can read the HandlerId's / Id's and I can get the data as a void pointer and then what ? Please note that I'm not the author of the data.

I've been looking through the documentation and this forum but I've not been able to find the clue in how to go on...

TIA...

Regards, Evan

4152.example.dgn

Parents Reply Children