A3DTreeNodeGetData

A3DStatus A3DTreeNodeGetData(const A3DTree *pTree, const A3DTreeNode *pNode, A3DUTF8Char **ppData)
A3DStatus A3DTreeNodeGetData(const A3DTree* pTree, const A3DTreeNode* pNode, A3DUTF8Char** ppData)

Desc.

Get data of the a tree node as a stringified json object.

26.7

Node data is only produced for markup / PMI nodes. For any other kind of node (product occurrences, part definitions, representation items, …), ppData will be set to an empty string.

Markup nodes are only present in trees that were computed with the TS3D_TREENODE_MARKUP flag set (see A3DTreeCompute() and the associated compute parameters). If the tree was computed without this flag, no markup node exists and therefore no data can be retrieved through this function.

To release the memory allocated internally by this function, call it again with both pTree and pNode set to A3D_NULL_HANDLE.

Return Values

A3D_SUCCESS:

A3D_INVALID_DATA:

A3D_INVALID_ENTITY_TYPE:

A3D_INVALID_ENTITY_NULL:

Parameters

pTree: The model tree containing the node, or A3D_NULL_HANDLE to clean the structure memory.

pNode: The tree node, or A3D_NULL_HANDLE to clean the structure memory.

ppData: The tree node data, as a stringified JSON object. Will be set to an empty string if the node has no associated data.

Returns

A3D_SUCCESS on success, or an error code on failure