Skip to main content
Version: v4.5

2D HOOPS node mapping file

Generate a Hoops node mapping file to pair with the Hoops stream file so that the platform viewer can efficiently find nodes in the BIMPK file by their properties, such as the bimpk-id.

In your hoops_node_mapping2d.json file, create two-way mappings in the following data structure:

Note: The BIMPK id is the integer id string you give the object in "objects.id" in objects.json.

hoops_node_mapping2d.json file structure

{  [    “<2D-view-1-title>”: [      {         "<node_id_1>": "<bimpk_id_1>",        ...      },      {         "<bimpk_id_1>": "<node_id_1>",        ...       }    ],    “<2D-view-2-title>”: [      {         "<node_id_1>": "<bimpk_id_1>",        ...      },      {         "<bimpk_id_1>": "<node_id_1>",        ...       }    ],    ...  ]}

hoops_node_mapping.json file example#

{  [    "Elevations(8142)": [      {        "2": "1",  //'2' is HOOPs node id and '1' is element's bimpk_id        "4": "2",        "6": "3",        "8": "4",        "10": "5",        ...      },          {        "1": "2",  // '1' is element's bimpk_id and '2' is HOOPs node id        "2": "4",        "3": "6",        "4": "8",        "5": "10",        ...      }      ],    "Floors(176804)": [      {        "12": "11",  //'2' is HOOPs node id and '1' is element's bimpk_id        "14": "12",        "16": "13",        "18": "14",        "21": "15",        ...      },          {        "11": "12",  // '1' is element's bimpk_id and '2' is HOOPs node id        "12": "14",        "13": "16",        "14": "18",        "15": "21",        ...      }      ],   

  ]  }