This commit is contained in:
Milovann Yanatchkov 2024-02-03 19:46:05 +01:00
parent 742a3994d2
commit 28c497a252

View file

@ -60,9 +60,10 @@ def create(name,objects):
run("aggregate.assign_object", model, relating_object=building, product=storey) run("aggregate.assign_object", model, relating_object=building, product=storey)
if True: if True:
l = random.random() * 5 f = 5
h = random.random() * 3 l = random.random() * 5 * f
t = random.random() * 0.2 h = random.random() * 3 * f
t = random.random() * 0.2 * f
wall = run("root.create_entity", model, ifc_class="IfcWall") wall = run("root.create_entity", model, ifc_class="IfcWall")
run("geometry.edit_object_placement", model, product=wall) run("geometry.edit_object_placement", model, product=wall)
representation = run("geometry.add_wall_representation", model, context=body, length=l, height=h, thickness=t) representation = run("geometry.add_wall_representation", model, context=body, length=l, height=h, thickness=t)