py path
This commit is contained in:
parent
35787b3845
commit
f977302d7b
1 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.selector
|
import ifcopenshell.util.selector
|
||||||
from ifcopenshell.api import run
|
from ifcopenshell.api import run
|
||||||
|
|
||||||
|
|
||||||
def load_model(filepath):
|
def load_model(filepath):
|
||||||
print("loading " + filepath)
|
print("loading " + filepath)
|
||||||
model = ifcopenshell.open(filepath)
|
model = ifcopenshell.open(filepath)
|
||||||
|
|
@ -78,7 +79,8 @@ def compute(p):
|
||||||
|
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
arg = "duplex"
|
arg = "duplex"
|
||||||
p = "../ifc/" + arg + ".ifc"
|
#p = "../ifc/" + arg + ".ifc"
|
||||||
|
p = "/home/fordjx/SOURCES/FORDJ/fordjx/hackathon-zurich/ifc/" + arg + ".ifc"
|
||||||
compute(p)
|
compute(p)
|
||||||
elif len(sys.argv) > 1:
|
elif len(sys.argv) > 1:
|
||||||
arg = sys.argv[1]
|
arg = sys.argv[1]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue