From 513b6944e9a4f3ca1a95dd6774dd8ed12beffad9 Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 14 Dec 2009 11:43:35 +0000 Subject: [PATCH] instance of Parameter can be passed into Geom objects --- src/GEOM_SWIG/geompyDC.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index b66840350..fe62ce326 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -107,6 +107,9 @@ def ParseParameters(*parameters): p = notebook.get(parameter) Result.append(p) Params.append(parameter) + elif isinstance(parameter, SALOME._objref_Parameter): + Result.append(notebook.get(parameter)) + Params.append(parameter.GetEntry()) else: Result.append(parameter) Params.append("") -- 2.39.2