From c3e9e975de8d634371078599a1216bd881ccd05f Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9rald=20NICOLAS?= Date: Fri, 16 Jul 2021 11:31:56 +0200 Subject: [PATCH] Nommage des features des points --- src/PythonAddons/macros/pipeNetwork/feature.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PythonAddons/macros/pipeNetwork/feature.py b/src/PythonAddons/macros/pipeNetwork/feature.py index 6c7d087a9..fb5667b51 100755 --- a/src/PythonAddons/macros/pipeNetwork/feature.py +++ b/src/PythonAddons/macros/pipeNetwork/feature.py @@ -23,7 +23,7 @@ Author: Nathalie GORE - Gérald NICOLAS Remarque : la fonction de partitionnement pour un futur maillage en hexa est désactivée. """ -__revision__ = "V02.09" +__revision__ = "V02.10" from salome.shaper import model import ModelAPI @@ -342,6 +342,7 @@ La ligne est formée de deux informations : print("key = {}".format(key)) point = model.addPoint(part, value['X'], value['Y'], value['Z']) point.execute(True) + point.setName(key) point.result().setName(key) self.lfeatures.append(point) value["point"] = point.result() -- 2.39.2