mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
black format
This commit is contained in:
@@ -99,9 +99,12 @@ class Root(blenderbim.core.tool.Root):
|
|||||||
if not element:
|
if not element:
|
||||||
continue
|
continue
|
||||||
if hasattr(element, "ConnectedTo") and element.ConnectedTo:
|
if hasattr(element, "ConnectedTo") and element.ConnectedTo:
|
||||||
paths = [connection for connection in element.ConnectedTo if connection.is_a("IfcRelConnectsPathElements")]
|
paths = [
|
||||||
|
connection for connection in element.ConnectedTo if connection.is_a("IfcRelConnectsPathElements")
|
||||||
|
]
|
||||||
for path in paths:
|
for path in paths:
|
||||||
relationships[element] = {"type": "path",
|
relationships[element] = {
|
||||||
|
"type": "path",
|
||||||
"related_connection_type": path.RelatedConnectionType,
|
"related_connection_type": path.RelatedConnectionType,
|
||||||
"related_element": path.RelatedElement,
|
"related_element": path.RelatedElement,
|
||||||
"related_priorities": path.RelatedPriorities,
|
"related_priorities": path.RelatedPriorities,
|
||||||
@@ -236,7 +239,6 @@ class Root(blenderbim.core.tool.Root):
|
|||||||
related_connection=data["related_connection_type"],
|
related_connection=data["related_connection_type"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def recreate_aggregate(cls, old_to_new):
|
def recreate_aggregate(cls, old_to_new):
|
||||||
for old, new in old_to_new.items():
|
for old, new in old_to_new.items():
|
||||||
@@ -275,7 +277,6 @@ class Root(blenderbim.core.tool.Root):
|
|||||||
related_obj=tool.Ifc.get_object(tool.Ifc.get_entity(obj)),
|
related_obj=tool.Ifc.get_object(tool.Ifc.get_entity(obj)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def run_geometry_add_representation(
|
def run_geometry_add_representation(
|
||||||
cls, obj=None, context=None, ifc_representation_class=None, profile_set_usage=None
|
cls, obj=None, context=None, ifc_representation_class=None, profile_set_usage=None
|
||||||
|
|||||||
Reference in New Issue
Block a user