0021390: EDF 1627 GEOM: Automatic addToStudy

Step 3:
- Wrap remaining functions with auto-publishing mechanism
This commit is contained in:
vsr 2012-12-28 07:59:19 +00:00
parent 77a98edebe
commit 9b9adba8a0
2 changed files with 321 additions and 48 deletions

File diff suppressed because it is too large Load Diff

View 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