Solved
How to traverse feature element tree in protoolkit
- July 6, 2016
- 2 replies
- 2668 views
Hi guys!
I did it in Object toolkit, but now I have to rewrite it using protoolkit.
What I've got:
1. Use ProFeatureElemtreeExtract() to get a copy of tree: no errors.
2. create variable:
ProElempathItem depthTypePath[] = { {PRO_ELEM_PATH_ITEM_TYPE_ID, {PRO_E_EXT_DEPTH_TO_TYPE} } };
and use it for
ProElempathAlloc() + ProElempathDataSet() + ProElemtreeElementGet()
Here I got an error:
ProElemtreeElementGet returns code: PRO_TK_E_NOT_FOUND
And further call of ProElementIntegerGet() returns 0 instead of 262144.
I think, I don't know how to create a proper structure of ProElempathItem .
I tried to find info in UG and examples, but it's still not clear to me. I attached xml with my tree.
Can you pls help me with it.
Thanks,
Artem


