From: Gérald NICOLAS Date: Fri, 16 Jul 2021 09:31:56 +0000 (+0200) Subject: Nommage des features des points X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c3e9e975de8d634371078599a1216bd881ccd05f;p=modules%2Fshaper.git Nommage des features des points --- 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()