From: asl Date: Mon, 14 Dec 2009 11:43:35 +0000 (+0000) Subject: instance of Parameter can be passed into Geom objects X-Git-Tag: PHASE_17_Part1_V4~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=513b6944e9a4f3ca1a95dd6774dd8ed12beffad9;p=modules%2Fgeom.git instance of Parameter can be passed into Geom objects --- 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("")