# ----------------------------------
# - BBTKGEditor v 1.4 BBS BlackBox Script
-# - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00200_InitialParameters.bbs
+# - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs
# ----------------------------------
# BBTK GEditor Script
include creaVtk
include vtk
include creaMaracasVisu
+include creaMiniTools
author "Author ??"
description "Description ??"
set Box18.TypeControlsInterface "2"
new wx:CommandButton Box19
- set Box19.Label "Save & Exit"
+ set Box19.Label "Save and Close"
new std:MultipleInputs Box20
new std:Exit Box22
new std:ConcatStrings Box23
- set Box23.In2 "/InitialValues.txt"
+ set Box23.In2 "/InitialParameters.txt"
new std:StringWriter Box24
new std:GetVectorDoubleElement Box34
set Box34.I "1"
+new creaMiniTools:WriteStatePatientSystem Box35
+ set Box35.State "Finish"
+
+new std:ConcatStrings Box36
+ set Box36.In2 "/Step02_InitialParameters.txt"
+
+new std:MagicBox Box37
+
connect Box34.Out Box16.Max
+connect Box35.boxChange Box20.In4
+
+connect Box29.Out Box36.In1
+
+
+connect Box37.Out Box35.User
+
+connect Box36.Out Box35.Filename
+
# Complex input ports
input BaseDir Box01.In1 " "
input PatientID Box02.In1 " "
input CoreID Box10.In1 " "
+input creaUser Box37.In " "
exec Box05
exec Box15
-exec Box18