Floor and Unit data extraction

Floor and Unit data extraction

josepht21
Enthusiast Enthusiast
465 Views
1 Reply
Message 1 of 2

Floor and Unit data extraction

josepht21
Enthusiast
Enthusiast

Hi! I am new to Forma API and I am trying to get the data of the floor and units in the floor. 

What would be the best way to get the Floor Data and also the units in it (like type, geometry and such).

Thanks in advance!

0 Likes
466 Views
1 Reply
Reply (1)
Message 2 of 2

havard.hoiby
Alumni
Alumni

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

 

 

0 Likes