mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-12 19:24:33 +05:00
0021390: EDF 1627 GEOM: Automatic addToStudy
Step 3: - Wrap remaining functions with auto-publishing mechanism
This commit is contained in:
parent
77a98edebe
commit
9b9adba8a0
File diff suppressed because it is too large
Load Diff
@ -253,11 +253,20 @@ class Sketcher3D:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
## Obtain the sketcher result.
|
## 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
|
# @return New GEOM_Object, containing the created wire
|
||||||
def wire (self):
|
def wire (self, theName=None):
|
||||||
"""
|
"""
|
||||||
Obtain the sketcher result.
|
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:
|
Returns:
|
||||||
New GEOM_Object, containing the created wire.
|
New GEOM_Object, containing the created wire.
|
||||||
|
|
||||||
@ -272,4 +281,5 @@ class Sketcher3D:
|
|||||||
self.myCommand = "3DSketcher"
|
self.myCommand = "3DSketcher"
|
||||||
RaiseIfFailed("Sketcher3D", self.geompyD.CurvesOp)
|
RaiseIfFailed("Sketcher3D", self.geompyD.CurvesOp)
|
||||||
wire.SetParameters(Parameters)
|
wire.SetParameters(Parameters)
|
||||||
|
self.geompyD._autoPublish(wire, theName, "wire")
|
||||||
return wire
|
return wire
|
||||||
|
Loading…
x
Reference in New Issue
Block a user