From 1724cd310e878cad4c2f89cacea8761303d52668 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 21 Dec 2009 15:16:19 +0000 Subject: [PATCH] Debug --- src/SMESH_I/SMESH_NoteBook.cxx | 10 ++++++++++ src/SMESH_SWIG/smeshDC.py | 14 ++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/SMESH_I/SMESH_NoteBook.cxx b/src/SMESH_I/SMESH_NoteBook.cxx index d064e6d7a..47de62ed4 100644 --- a/src/SMESH_I/SMESH_NoteBook.cxx +++ b/src/SMESH_I/SMESH_NoteBook.cxx @@ -290,6 +290,16 @@ void SMESH_NoteBook::ReplaceVariables() aCmd->SetArg(1,aStates->GetCurrectState().at(1)); //aStates->IncrementState(); } + if(aMethod == "SetStartLength" && + aStates->GetCurrectState().size() >= 2) { + if(!aStates->GetCurrectState().at(0).IsEmpty() ) + aCmd->SetArg(1,aStates->GetCurrectState().at(0)); + } + if(aMethod == "SetEndLength" && + aStates->GetCurrectState().size() >= 2) { + if(!aStates->GetCurrectState().at(1).IsEmpty() ) + aCmd->SetArg(1,aStates->GetCurrectState().at(1)); + } } //Case for Deflection1D hypothesis diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 2b856952b..559aa22ea 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -5220,6 +5220,20 @@ class Arithmetic1D(StdMeshers._objref_StdMeshers_Arithmetic1D): length,parameters = ParseParameters(StdMeshers._objref_StdMeshers_Arithmetic1D.GetParameters(self),2,nb,length) geompyDC.SetParameters(self, parameters) StdMeshers._objref_StdMeshers_Arithmetic1D.SetLength(self,length,isStart) + + ## Set Start Length parameter value + # @param length numerical value or name of variable from notebook + def SetStartLength(self, length): + length,parameters = ParseParameters(StdMeshers._objref_StdMeshers_Arithmetic1D.GetParameters(self),2,1,length) + geompyDC.SetParameters(self, parameters) + StdMeshers._objref_StdMeshers_Arithmetic1D.SetStartLength(self,length) + + ## Set End Length parameter value + # @param length numerical value or name of variable from notebook + def SetEndLength(self, length): + length,parameters = ParseParameters(StdMeshers._objref_StdMeshers_Arithmetic1D.GetParameters(self),2,2,length) + geompyDC.SetParameters(self, parameters) + StdMeshers._objref_StdMeshers_Arithmetic1D.SetEndLength(self,length) #Registering the new proxy for Arithmetic1D omniORB.registerObjref(StdMeshers._objref_StdMeshers_Arithmetic1D._NP_RepositoryId, Arithmetic1D) -- 2.39.2