|
@@ -53,7 +53,7 @@ def sort_connectors(connectors):
|
|
|
|
|
|
def is_break_condition(element):
|
|
|
"""Path end Condition."""
|
|
|
- res = element.type in revit_const.FACILITY
|
|
|
+ res = element.type in FACILITY
|
|
|
return res
|
|
|
|
|
|
|
|
@@ -520,7 +520,6 @@ class FloorGraph:
|
|
|
"""FLoor Graph.
|
|
|
May contain one or more SystemGraph.
|
|
|
"""
|
|
|
-
|
|
|
def __init__(self,model, system_name, domain,floor_connectors,element_data):
|
|
|
self.model=model
|
|
|
self.system_name = system_name
|
|
@@ -743,7 +742,9 @@ if '__main__'==__name__:
|
|
|
models= get_project_models(project_id)
|
|
|
floorgraphs=[]
|
|
|
for model in models:
|
|
|
- g= FloorGraph(model, system_name, domain)
|
|
|
+ floor_connectors = get_connectors_data(model.file_id, system_name, domain)
|
|
|
+ floor_elements = get_element_data(model.file_id)
|
|
|
+ g= FloorGraph(model, system_name, domain,floor_connectors,floor_elements)
|
|
|
g.get_floor_graphs()
|
|
|
floorgraphs.append(g)
|
|
|
projectgraph= combine_systemgraph(floorgraphs)
|