This commit is contained in:
Milovann Yanatchkov 2024-02-03 14:28:14 +01:00
parent 85f2ea51fa
commit c1a13b7395

View file

@ -77,11 +77,20 @@ def compute(p):
print("writing test.ifc") print("writing test.ifc")
create("../output/test.ifc",lst) 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: if len(sys.argv) == 1:
arg = "duplex" arg = "duplex"
#p = "../ifc/" + arg + ".ifc" #p = "../ifc/" + arg + ".ifc"
p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + arg + ".ifc" p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + arg + ".ifc"
compute(p) compute_server(p)
elif len(sys.argv) > 1: elif len(sys.argv) > 1:
arg = sys.argv[1] arg = sys.argv[1]
print(f">> filename:{arg}") print(f">> filename:{arg}")