Tc BOM Structure Get Recursive: Output example of BOM
This example shows the output document that returns a BOM structure recursively.
The result array contains a document for each child node element and a sub object “rel”, which contains the so called BomLine attributes and attribute values.
[
{
"_id": "TC*Part Revision*null***QGGAwQey7hAnmD",
"object_string": "052147/A;1-TopNode",
"UID": "QGGAwQey7hAnmD",
"StructureChildren_AnyStatus;Working": [
{
"_id": "TC*Part Revision*null***QWFAwQey7hAnmD",
"object_string": "052148/A;1-SubNode#1",
"UID": "QWFAwQey7hAnmD",
"_rel": {
"_id": "TC*BOMLine*null***BOM::59629",
"object_string": "052148/A;1-SubNode#1 x 1",
"UID": "BOM::59629",
"_rel_role": "StructureChildren",
"_rel_name": "Any Status; Working(CAD-Modified"
},
"StructureChildren_AnyStatus;Working": [
]
},
{
"_id": "TC*Part Revision*null***QeJAwQey7hAnmD",
"object_string": "052149/A;1-SubNode#2",
"UID": "QeJAwQey7hAnmD",
"_rel": {
"_id": "TC*BOMLine*null***BOM::59631",
"object_string": "052149/A;1-SubNode#2 x 1",
"UID": "BOM::59631",
"_rel_role": "StructureChildren",
"_rel_name": "Any Status; Working(CAD-Modified"
},
"StructureChildren_AnyStatus;Working": [
{
"_id": "TC*Part Revision*null***QyDAwQey7hAnmD",
"object_string": "052150/A;1-SubNode#3",
"UID": "QyDAwQey7hAnmD",
"_rel": {
"_id": "TC*BOMLine*null***BOM::59633",
"object_string": "052150/A;1-SubNode#3 x 1",
"UID": "BOM::59633",
"_rel_role": "StructureChildren",
"_rel_name": "Any Status; Working(CAD-Modified"
},
"StructureChildren_AnyStatus;Working": [
]
}
]
}
],
"original": {
"_id": "TC*Part Revision*null***QGGAwQey7hAnmD",
"object_string": "052147/A;1-TopNode",
"UID": "QGGAwQey7hAnmD"
}
}
]