When editing an array of enumeration with unknown size in Dymola (2025x r1), it is possible for the user to set a value to the array which is not a vector:
type Catalogue = enumeration(A "A",B "B");
model Test
parameter Catalogue elements[:];
end Test;
In the parameter editing interface, when I use the down arrow to choose for elements, it set the value to
each elements = Catalogue.A
This lead to wrong code:
parameter Catalogue elements[:]=Catalogue.A;
which instead should be, as far as I understand :
parameter Catalogue elements[:]={Catalogue.A};
On the other side when using the array edition tool, it is possible to properly set the array values:

leading to the correct code:
parameter Catalogue elements[:]={Catalogue.A,Catalogue.B};
Am I doing anything wrong ? In my use, I would make sure that using either the down arrow for setting just one element or the array edition tool, lead to correct code or to provide the user with only one interface to fill the values of the array.

