This function converts the line pattern enumeration as used in the Modelica_LinearSystems2 library to the enumeration used in Dymola.
function convertToDymolaPattern extends Modelica.Icons.Function; import Pattern = Modelica_LinearSystems2.Utilities.Plot.Types.LinePattern; input Pattern pattern "Enumeration value of line pattern used in Modelica_LinearSystems2"; output LinePattern result "Enumeration value of line pattern used in Dymola"; end convertToDymolaPattern;