diff --git a/python/extract.py b/python/extract.py index cde9fd3..1e82116 100644 --- a/python/extract.py +++ b/python/extract.py @@ -1,5 +1,6 @@ import sys import os +import datetime import ifcopenshell import ifcopenshell.util.element import ifcopenshell.util.selector @@ -84,7 +85,8 @@ def compute_server(p): select(model,"IfcBuildingStorey") print("writing test.ifc") arg = "test" - p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + arg + ".ifc" + now = datetime.datetime.now() + p = "/home/fordj/SOURCES/FORDJ/fordjx/hackathon-zurich/output/" + arg + "_" + now + ".ifc" create(p,lst) if len(sys.argv) == 1: