From: ouv Date: Mon, 21 Dec 2009 15:16:19 +0000 (+0000) Subject: Debug X-Git-Tag: PHASE_17_Part1_V4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1724cd310e878cad4c2f89cacea8761303d52668;p=modules%2Fsmesh.git Debug --- 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)