Salome HOME
PR: synchro V6_main tag mergeto_V7_main_11Feb13
[modules/geom.git] / src / GEOM_SWIG / gsketcher.py
index 11ef9bb6d6f183b00046a1fdf7bcf5fdac2013e7..a3810ae06ec7e49cce3619272aa19c491e47b7d3 100644 (file)
@@ -253,11 +253,20 @@ class Sketcher3D:
         pass
 
     ## Obtain the sketcher result.
+    #  @param theName Object name; when specified, this parameter is used
+    #         for result publication in the study. Otherwise, if automatic
+    #         publication is switched on, default value is used for result name.
+    #
     #  @return New GEOM_Object, containing the created wire
-    def wire (self):
+    def wire (self, theName=None):
         """
         Obtain the sketcher result.
 
+        Parameters:
+            theName Object name; when specified, this parameter is used
+                    for result publication in the study. Otherwise, if automatic
+                    publication is switched on, default value is used for result name.
+
         Returns:
             New GEOM_Object, containing the created wire.
 
@@ -272,4 +281,5 @@ class Sketcher3D:
         self.myCommand = "3DSketcher"
         RaiseIfFailed("Sketcher3D", self.geompyD.CurvesOp)
         wire.SetParameters(Parameters)
+        self.geompyD._autoPublish(wire, theName, "wire")
         return wire