﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3001	Difficulties in managing arrays of components in OMEDIT	massimo ceraolo	Adeel Asghar	"I want to use arrays of blocks in a model. Consider for instance the following code:


{{{
model a
  Modelica.Blocks.Sources.Constant const[3];
  Modelica.Blocks.Math.Gain gain[3];
equation 
  connect(gain.u, const.y) ;
end a;

}}}

It looks like it is impossible to create such code graphically in OMEdit. 

I tried dragging & dropping  ""const"" and ""gain"" from Modelica library, and then making the blocks become arrays changing their names, i.e. ""const"" into ""const[3]"" and ""gain"" into ""gain[3]"" .  But this did not work.

Indeed, changing ""const"" into ""const[3]"" directly in the diagram view perspective causes a strange behaviour:  the name visualised in the diagram view is ""const[3]"", while the code still reads ""const"". 

Some modifications to OMEdit to allow better management of arrays of model is needed, I suppose?
"	defect	closed	high	1.9.3	OMEdit	trunk	duplicate		
