This commit is contained in:
ouv 2009-12-21 15:16:19 +00:00
parent da7d0ab212
commit 1724cd310e
2 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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)