From d93da36b41182a46ee8da1538f010af006368e62 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Tue, 16 Dec 2025 18:45:31 +0100 Subject: [PATCH] BIM: ifc_tools.py fix handling of IfcGridAxis Fix errors found after this linter warning: https://github.com/FreeCAD/FreeCAD/pull/26219/changes#diff-2f58fe8ffd31a6d9302296668f6280d27d696e1507b259cc42fde224ef10da0eL759 --- src/Mod/BIM/nativeifc/ifc_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/BIM/nativeifc/ifc_tools.py b/src/Mod/BIM/nativeifc/ifc_tools.py index 383df7e514..4bbeffc405 100644 --- a/src/Mod/BIM/nativeifc/ifc_tools.py +++ b/src/Mod/BIM/nativeifc/ifc_tools.py @@ -757,9 +757,9 @@ def add_properties(obj, ifcfile=None, ifcentity=None, links=False, shapemode=0, obj.addProperty("App::PropertyLength", "Length", "Axis", locked=True) if "Text" not in obj.PropertiesList: obj.addProperty("App::PropertyStringList", "Text", "Base", locked=True) - obj.Text = [text.Literal] - obj.Placement = ifc_export.get_placement(ifcentity.ObjectPlacement, ifcfile) + obj.Placement = axisdata[0] obj.Length = axisdata[1] + # axisdata[2] is the axis tag, it is already applied by other code elif ifcentity.is_a("IfcAnnotation"): sectionplane = ifc_export.get_sectionplane(ifcentity) if sectionplane: