From: Gérald NICOLAS Date: Tue, 10 Jan 2023 16:06:14 +0000 (+0100) Subject: La part X-Git-Tag: V9_12_0a1~16^2~32^2~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0961e7d4a7333151d68663dd5b9adc4f698c9f65;p=modules%2Fshaper.git La part --- diff --git a/src/PythonAddons/macros/midSurface/surfaceMediane.py b/src/PythonAddons/macros/midSurface/surfaceMediane.py index d7e6a67a2..13e493ef5 100755 --- a/src/PythonAddons/macros/midSurface/surfaceMediane.py +++ b/src/PythonAddons/macros/midSurface/surfaceMediane.py @@ -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