﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3196	OMEdit vectorization support	Rüdiger Franke	Adeel Asghar	"OMEdit already supports vector connections with the Connect Array dialog. This dialog expects positive integer values, like `1` to connect `u1` to `y3[1]` in the example below. Additionally it should allow:
1. enter no values and press ok -- e.g. to connect `u2` to `y2` in the example below
2. enter array_subscripts with colon, like `2:3` for the connection of `u2` to `y3[2:3]` in the example below

Moreover OMEdit does not seem to support the creation of vectors of components yet.
3.  The Attributes dialog should support names with a dimension specifier, like `y2[2]` and pass these unchanged to the Modelica text (currently such names lead to some undefined behavior).

See also the attached screenshot.

{{{#!mo
model Vectorization
  Modelica.Blocks.Interfaces.RealInput u1 annotation(Placement(visible = true, transformation(origin = {-30, 60}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {-52, 64}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Interfaces.RealInput u2[2] annotation(Placement(visible = true, transformation(origin = {-30, 40}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {-50, 40}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Interfaces.RealOutput y2[2] annotation(Placement(visible = true, transformation(origin = {30, 40}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {38, 62}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Blocks.Interfaces.RealOutput y3[3] annotation(Placement(visible = true, transformation(origin = {30, 60}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {30, 64}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
  connect(u1, y3[1]) annotation(Line(points = {{-30, 60}, {22, 60}, {22, 60}, {22, 60}}, color = {0, 0, 127}));
  connect(u2, y3[2:3]) annotation(Line(points = {{-30, 40}, {0, 40}, {0, 58}, {22, 58}, {22, 58}}, color = {0, 0, 127}));
  connect(u2, y2) annotation(Line(points = {{-30, 40}, {24, 40}, {24, 40}, {24, 40}}, color = {0, 0, 127}));
  annotation(Icon(coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2, 2})), Diagram(coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2, 2})));
end Vectorization;
}}}"	defect	closed	high	1.9.3	OMEdit	trunk	fixed		Adrian Pop massimo ceraolo
