From: asl Date: Sat, 21 Nov 2009 12:19:22 +0000 (+0000) Subject: Implementation of communications with notebook X-Git-Tag: PHASE_17_Part1_V1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aa58f91761ccab36d7ff85b66c0badcda1c19bea;p=modules%2Fgeom.git Implementation of communications with notebook --- diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index 736acf416..148342260 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -101,7 +101,11 @@ def ParseParameters(*parameters): Params = [] for parameter in parameters: if isinstance(parameter, str): - Result.append(notebook.get(parameter)) + p = notebook.get(parameter) + if p==None: + notebook.getNotebook().AddExpression(parameter) + p = notebook.get(parameter) + Result.append(p) Params.append(parameter) else: Result.append(parameter) @@ -2304,7 +2308,9 @@ class geompyDC(GEOM._objref_GEOM_Gen): # \n @ref swig_MakeCommon "Example 2" def MakeFuse(self, s1, s2): # Example: see GEOM_TestOthers.py - return self.MakeBoolean(s1, s2, 3) + res = self.MakeBoolean(s1, s2, 3) + res.StoreDependencies( notebook.getNotebook() ) + return res ## Shortcut to MakeBoolean(s1, s2, 4) #