Open simple browser alert with basic info on clicked element

pull/7876/head
Wieland Lindenthal 5 years ago
parent ca4fe2df68
commit 0bde24307e
  1. 2
      frontend/src/app/modules/ifc_models/ifc-viewer.component.ts

@ -71,7 +71,9 @@ export class IFCViewerComponent implements OnInit, OnDestroy {
viewerUI.on("queryPicked", (event:any) => {
const entity = event.entity; // Entity
const metaObject = event.metaObject; // MetaObject
alert(`Query result:\n\nObject ID = ${entity.id}\nIFC type = "${metaObject.type}"`);
});
viewerUI.loadProject(this.Gon.get('ifc_models', 'projects') as any [0]["id"]);
});
}

Loading…
Cancel
Save