GUI is not updating [DefineConstant]
Hello
I am opening A.geo
with File > Open
and the field to edit my constant A_1
appears.
Then I am opening B.geo
with File > Open
and the field to edit my constant B_1
appears but the one to edit A_1
is still there.
A different version is presented by C.geo
. There the effect is happening in one document. Maybe anyway not intended that it is working.
A.geo
SetFactory("OpenCASCADE");
DefineConstant[A_1 = {1, Min 1, Max 10, Step 1, Name "A_1"}];
B.geo
SetFactory("OpenCASCADE");
DefineConstant[B_1 = {1, Min 1, Max 10, Step 1, Name "B_1"}];
C.geo
SetFactory("OpenCASCADE");
DefineConstant[A_1 = {1, Min 1, Max 2, Step 1, Name "A_1"}];
If (A_1 == 1)
DefineConstant[B_1 = {1, Min 1, Max 10, Step 1, Name "B_1"}];
ElseIf (A_1 == 2)
DefineConstant[C_1 = {1, Min 1, Max 10, Step 1, Name "C_1"}];
EndIf