This commit is contained in:
Andrej730
2025-10-06 10:58:42 +05:00
parent b68ce08811
commit 839c5ad932
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -440,7 +440,7 @@ def add_annotation(
drawing_tool.show_decorations()
obj = drawing_tool.create_annotation_object(drawing, object_type)
element = ifc.get_entity(obj)
if not element: # Brand new annotation
if not element: # Brand new annotation
relating_type_rep = drawing_tool.get_annotation_representation(relating_type) if relating_type else None
element = drawing_tool.run_root_assign_class(
obj=obj,
+1 -2
View File
@@ -117,8 +117,7 @@ def switch_representation(
representation: ifcopenshell.entity_instance,
apply_openings: bool = True,
) -> None:
"""Switch obj representation (even if not yet assigned to that object. See #2766.)
"""
"""Switch obj representation (even if not yet assigned to that object. See #2766.)"""
if not geometry.get_object_data(obj) and geometry.is_text_literal(representation):
return
+2 -2
View File
@@ -237,7 +237,7 @@ class Txt(Console):
class Json(Reporter):
def __init__(self, ids: Ids,hide_skipped = False):
def __init__(self, ids: Ids, hide_skipped=False):
super().__init__(ids)
self.results = Results()
self.results["hide_skipped"] = hide_skipped
@@ -462,7 +462,7 @@ class Html(Json):
requirement["total_omitted_passes"] = total_passed_entities - self.entity_limit
requirement["has_omitted_passes"] = total_passed_entities > self.entity_limit
requirement["instructions"] = requirement["metadata"].get("@instructions")
def limit_entities(self, entities):
if len(entities) > self.entity_limit:
if entities[0]["element_type"]: