From c1a13b73959fcb2bc49aa1e78e274f97e6a45442 Mon Sep 17 00:00:00 2001 From: milovann Date: Sat, 3 Feb 2024 14:28:14 +0100 Subject: [PATCH] pyupdate --- python/extract.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python/extract.py b/python/extract.py index b062ecf..ccd390c 100644 --- a/python/extract.py +++ b/python/extract.py @@ -77,11 +77,20 @@ def compute(p): print("writing test.ifc") create("../output/test.ifc",lst) +def compute_server(p): + model = load_model(p) + lst = get_walls(model) + select(model,"IfcBuildingStorey") + print("writing test.ifc") + arg = "test" + p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + arg + ".ifc" + create(p,lst) + if len(sys.argv) == 1: arg = "duplex" #p = "../ifc/" + arg + ".ifc" p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + arg + ".ifc" - compute(p) + compute_server(p) elif len(sys.argv) > 1: arg = sys.argv[1] print(f">> filename:{arg}")