From b75269ac236dffa2d8699cd79abbfbbdc0097d64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9rald=20NICOLAS?= Date: Tue, 29 Jun 2021 15:50:13 +0200 Subject: [PATCH] =?utf8?q?Nom=20du=20r=C3=A9sultat?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/PythonAddons/macros/pipeNetwork/feature.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/PythonAddons/macros/pipeNetwork/feature.py b/src/PythonAddons/macros/pipeNetwork/feature.py index c2e872c77..828fcad77 100755 --- a/src/PythonAddons/macros/pipeNetwork/feature.py +++ b/src/PythonAddons/macros/pipeNetwork/feature.py @@ -22,7 +22,7 @@ Author: Nathalie Gore """ -__revision__ = "V02.02" +__revision__ = "V02.03" from salome.shaper import model import ModelAPI @@ -331,7 +331,13 @@ class pipeNetwork(model.Feature): from os.path import basename filename = basename(filepath) - nameRes = "pipeNetwork_" + filename + if ( "." in filename ): + laux= filename.split(".") + nameRes = laux[0] + for saux in laux[1:-1]: + nameRes+="."+saux + else: + nameRes = filename # Creating the construction points in the current document lFeatures = list() @@ -573,6 +579,7 @@ class pipeNetwork(model.Feature): fuse.execute(True) self.lfeatures.append(fuse) fuse.result().setName(nameRes) + print (dir(fuse)) self.folder = model.addFolder(part, self.lfeatures[0], self.lfeatures[-1]) self.folder.setName(nameRes) -- 2.39.2