]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
La part
authorGérald NICOLAS <gerald.nicolas@edf.fr>
Tue, 10 Jan 2023 16:06:14 +0000 (17:06 +0100)
committerGérald NICOLAS <gerald.nicolas@edf.fr>
Wed, 25 Jan 2023 10:48:21 +0000 (11:48 +0100)
src/PythonAddons/macros/midSurface/surfaceMediane.py

index d7e6a67a223e4d1e5ebaf7a327a1d45b1269fe48..13e493ef5d5b467ac7df967818d62a2b740d05b0 100755 (executable)
@@ -2089,6 +2089,9 @@ Sorties :
 # 1. Définition de la pièce
 
       self.part_doc = model.activeDocument()
+      if ( self.part_doc.kind() == "PartSet" ):
+        part = model.addPart(self.part_doc)
+        self.part_doc = part.document()
 
 # 2. Import de la CAO