typesMap property
Hello everyone!
Today I installed the latest version of web-ifc-viewer in one of my apps.
For some reason, the property typesMap stop working and now it gives an error (the result of applying it is undefined).


It is something related to the upgrade? Is there a way to substitute that expression to obtain a similar result?
Thank you
The entire file has been deleted in this commit. Depending on how you want to use all the types, there are probably more efficient ways to get them. Do you care to share your purpose/code?
Sure.

The idea is obtaining the geometric types of the model (IFCSLABS, IFCCOLUMS, etc.), in the format that typesMap gived, that was an object with the number code of the type as key and the string name as the value.
Thanks!
So this can now be acquired from the web-ifc api using the GetIfcEntityList method. i.e. viewer.Loader.ifcManager.getIfcAPI().GetIfcEntityList(modelID).
You need to provide your model ID as the list of ifc entities may be different depending on what schema your model is
Hi @beachtom it gives me the following error:
Uncaught TypeError: Cannot read properties of undefined (reading 'ifcManager').
I made some changes to the expresion:
await viewer.IFC.loader.ifcManager.ifcAPI.GetIfcEntityList(model.modelID)
and gave me an array with ids, but they don't have the names of the types associated like typesMap property did.

Sorry should have been viewer.IFC.Loader.ifcManager.getIfcAPI().GetIfcEntityList(modelID).