IDS
Copying and pasting? We've got you covered! You can find the full source code of this tutorial here.
Visualizing IDS Validation Results 📊
BIM managers and data quality teams need to verify that elements comply with project data requirements — such as all doors having a fire rating — but reviewing validation results element by element in a spreadsheet gives no spatial or quantitative overview of how many elements passed or failed. The IDS chart factory takes a validation result object and generates a chart that breaks down pass, fail, and unchecked counts visually, with no manual data transformation required. This tutorial covers defining an IDS specification with an entity applicability facet (all doors) and a property requirement facet (FireRating in Pset_DoorCommon); running the validation against a loaded model; highlighting passing elements in green and failing elements in red directly in the viewport; creating a pie chart and a bar chart from the IDS result; connecting a shared legend; and wiring highlight, filter by threshold, and reset actions to the pie chart. By the end, you'll have a validation dashboard with pass/fail charts linked to color-coded elements in the 3D model, giving an immediate spatial and quantitative view of IDS compliance.
import * as OBC from "@thatopen/components";
import * as OBCF from "@thatopen/components-front";
import * as BUI from "@thatopen/ui";
import * as FRAGS from "@thatopen/fragments";
import * as THREE from "three";
import * as BUIC from "../..";
📋 Initializing the UI
As always, let's first initialize the UI library. Remember you only have to do it once in your entire app.
BUI.Manager.init();