From 0961e7d4a7333151d68663dd5b9adc4f698c9f65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9rald=20NICOLAS?= Date: Tue, 10 Jan 2023 17:06:14 +0100 Subject: [PATCH] La part --- src/PythonAddons/macros/midSurface/surfaceMediane.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2