From aa58f91761ccab36d7ff85b66c0badcda1c19bea Mon Sep 17 00:00:00 2001 From: asl Date: Sat, 21 Nov 2009 12:19:22 +0000 Subject: [PATCH] Implementation of communications with notebook --- src/GEOM_SWIG/geompyDC.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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) # -- 2.39.2