diff --git a/frontend/src/app/modules/ifc_models/ifc-viewer.component.ts b/frontend/src/app/modules/ifc_models/ifc-viewer.component.ts index 4b15d65dfc..9e5cfc4f05 100644 --- a/frontend/src/app/modules/ifc_models/ifc-viewer.component.ts +++ b/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"]); }); }