Skip to content

Instantly share code, notes, and snippets.

@ibuilder
Created October 20, 2023 10:28
Show Gist options
  • Save ibuilder/5bc2894e8495894c6d339a3e0dbb4365 to your computer and use it in GitHub Desktop.
Save ibuilder/5bc2894e8495894c6d339a3e0dbb4365 to your computer and use it in GitHub Desktop.
Generate wall in dotbim using python
import dotbimpy as bim
# Create a new BIM modelmodel = bim.BIMModel()
# Add elements to the modelwall = bim.Wall()
wall.name = "Wall 1"wall.length = 5000wall.height = 3000# Add the wall to the modelmodel.add_element(wall)
# Save the model as a .bim filemodel.save("output.bim")
print("Model file generated successfully!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment