mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
See #3169. Fix bug where non walls and slabs didn't get semantic classes in drawings.
This commit is contained in:
@@ -836,15 +836,15 @@ class CreateDrawing(bpy.types.Operator):
|
|||||||
ifc = tool.Ifc.get()
|
ifc = tool.Ifc.get()
|
||||||
for el in root.findall(".//{http://www.w3.org/2000/svg}g[@{http://www.ifcopenshell.org/ns}guid]"):
|
for el in root.findall(".//{http://www.w3.org/2000/svg}g[@{http://www.ifcopenshell.org/ns}guid]"):
|
||||||
element = ifc.by_guid(el.get("{http://www.ifcopenshell.org/ns}guid"))
|
element = ifc.by_guid(el.get("{http://www.ifcopenshell.org/ns}guid"))
|
||||||
# Architectural convention only merges these objects. E.g. pipe segments and fittings shouldn't merge.
|
|
||||||
if not element.is_a("IfcWall") and not element.is_a("IfcSlab"):
|
|
||||||
continue
|
|
||||||
|
|
||||||
classes = self.get_svg_classes(element)
|
classes = self.get_svg_classes(element)
|
||||||
classes.append("cut")
|
classes.append("cut")
|
||||||
|
|
||||||
el.set("class", " ".join(classes))
|
el.set("class", " ".join(classes))
|
||||||
|
|
||||||
|
# Architectural convention only merges these objects. E.g. pipe segments and fittings shouldn't merge.
|
||||||
|
if not element.is_a("IfcWall") and not element.is_a("IfcSlab"):
|
||||||
|
continue
|
||||||
|
|
||||||
keys = []
|
keys = []
|
||||||
for query in join_criteria:
|
for query in join_criteria:
|
||||||
key = ifcopenshell.util.selector.get_element_value(element, query)
|
key = ifcopenshell.util.selector.get_element_value(element, query)
|
||||||
|
|||||||
Reference in New Issue
Block a user