﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1335	omc cannot handle annotation 3.x for some components	mohsen	mohsen	"If we set the annotations version to 3, then the OMC API getIconAnnotation don't returns the flat model for some components. I have tried it for Resistor, Conductor, EMF..........i am not sure how many more have this problem. Here is the output for 3 of them,

------------------------------------------------------------------------------------------------------------------------------------------------------
>> getIconAnnotation(Modelica.Electrical.Analog.Basic.Resistor)
>> {-100.0,-100.0,100.0,100.0,true,0.1,2.0,2.0}

>> getIconAnnotation(Modelica.Electrical.Analog.Basic.EMF)>> {-100.0,-100.0,100.0,100.0,true,0.1,1.0,1.0}

>> getIconAnnotation(Modelica.Electrical.Analog.Basic.Conductor)>> {-100.0,-100.0,100.0,100.0,true,0.1,2.0,2.0}
------------------------------------------------------------------------------------------------------------------------------------------------------

I am using MSL31.

One more thing, can someone tell me what is the output of getComponentAnnotations,

>> getComponentAnnotations(Modelica.Electrical.Analog.Basic.Ground)
>> {{true,0.0,100.0,10.0,-10.0,-10.0,10.0,270.0,0.0,0.0,-,-,-,-,0.0}}

What does each parameter means? I have looked for it in the Modelica Specifications for 3.2 but couldn't find anything.
-----------------------------

One more thing i have noticed is, the default parameter values for the components are empty. Like,

>> getParameterNames(Modelica.Electrical.Analog.Basic.Resistor)
>> {R, T_ref, alpha}

>> getParameterValue(Modelica.Electrical.Analog.Basic.Resistor, R)
>>

6----------------------
Also there are old bug report related to this issue: bug 1166 and 1160

Best Regards
Mohsen"	defect	closed	high				fixed		mohsen Adrian Pop
