Created
October 19, 2023 18:34
-
-
Save ibuilder/2e8a795aea3209d3c18d9e5f59a3a7c4 to your computer and use it in GitHub Desktop.
Basic schema to generate an ifc model for office space using dynamo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import necessary libraries | |
# pip install dynamo-python | |
import dynamo | |
session = dynamo.Session() | |
# Define the number of employees and desired area per employee for each space | |
num_employees = { | |
'desks': 50, | |
'kitchen': 20, | |
'bathrooms': 35, | |
'phone_booths': 10, | |
'mothers_room': 5, | |
'reception': 15, | |
'private_offices': 10, | |
'conference_rooms': 20, | |
'shared_space': 75} | |
# Calculate the total area required | |
total_area = sum(num_employees.values()) | |
# Calculate the area allocation percentage for each space | |
space_allocation = {space: (area_needed / total_area) * 100 for space, area_needed in num_employees.items()} | |
# Print the calculated space allocationfor space, allocation in space_allocation.items(): | |
print(f"The ideal space allocation for {space} is {allocation}%.") | |
session.export_to_ifc(‘generated_model.ifc’) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment