Menu

Easiest way to find all the stories in a building

archids
2022-07-24
2022-07-28
  • archids

    archids - 2022-07-24

    Hi all:

    I would like to know the easiest parsing method to find the Stories in a Building.
    Say...

    f = ifcopenshell.open(file)
    bldgs = f.by_type("IfcBuilding")
    for bldg in bldgs:
    > print(bldg.IsDecomposedBy)

    I may get result like...
    (#27366=IfcRelAggregates('3ym82ISZP8DxxqI6AGAA9k',#1,$,$,#1640,(#490,#488,#617,#489)),)

    Now what's the best way to get information of those 4 stories?

    Thanks!

     
  • Thomas Krijnen

    Thomas Krijnen - 2022-07-25

    The stories are then:

    bldgs.IsDecomposedBy[0].RelatedObjects
    

    For the other information have a look at the direct attributes such as Elevation and e.g ifcopenshell.util.element.get_psets()

     
  • archids

    archids - 2022-07-25

    Thanks Thomas!

    I don't see in the API Docs any info on Utils. Can you please point me to links with further information? I went through the Scripts in Utils folder and I have better understanding.

    Also I have one more question. How can we find the connecting floors of a Staircase? I see "ContainedInStructure" which points to a base story but i don't find any information on the other level the staircase connects to.

     

    Last edit: archids 2022-07-25

Log in to post a comment.