Hi Joseph 🙂
What you can do is to inspect the grossFloorAreaPolygons:
https://app.autodeskforma.com/forma-embedded-view-sdk/docs/classes/elements.RepresentationsApi.html#...
interface GrossFloorAreaPolygon {
areaType?: GrossFloorAreaType;
elevation: number;
grossFloorPolygon: MultiRingPolygon;
}
You will need to get the element hierarchy recursively from the building level and call this on each returned element and aggregate them.
The simples way is to call `Forma.elements.getByPath` with the recursive argument set: https://app.autodeskforma.com/forma-embedded-view-sdk/docs/classes/elements.ElementsApi.html#getbypa...
There is no standard way to read out floors, but grouping the gross floor areas by elevation would be one approximation. The reason for this is that we do not have a single source of buildings in Forma, and you will need to rely on the representation only to interpret what the elements are.
- Håvard