﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1160	getComponentAnnotations() and getNthComponentAnnotation() API are not working with Modelica standard library 3.x	donida	donida	"This bug was identified when using the OMC 1.5.0 nightly build on Win XP and the Modelica Standard Library 3.0 and Modelica Standard Library 3.1

The procedure is described in the following:

1. - download MSL (3.0 or 3.1) and change the OPENMODELICALIBRARY path variable accordingly



2. - set the new annotation version:

         >> setAnnotationVersion(""3.x"")

            true




3. - load the MSL:

         >> loadModel(Modelica)

            true




4. - get the list of components within the ChuaCircuit model:

         >> getComponents(Modelica.Electrical.Analog.Examples.ChuaCircuit)

            {{Modelica.Electrical.Analog.Basic.Inductor,L,"""", ""public"", false, false, false, false, ""unspecified"", ""none"", ""unspecified"", {}},{Modelica.Electrical.Analog.Basic.Resistor,Ro,"""", ""public"", false, false, false, false, ""unspecified"", ""none"", ""unspecified"",{}},{Modelica.Electrical.Analog.Basic.Conductor,G,"""", ""public"", false, false, false, false, ""unspecified"", ""none"", ""unspecified"",{}},{Modelica.Electrical.Analog.Basic.Capacitor,C1,"""", ""public"", false, false, false, false, ""unspecified"", ""none"", ""unspecified"",{}},{Modelica.Electrical.Analog.Basic.Capacitor,C2,"""", ""public"", false, false, false, false, ""unspecified"", ""none"", ""unspecified"",{}},{Modelica.Electrical.Analog.Examples.Utilities.NonlinearResistor,Nr,"""", ""public"", false, false, false, false, ""unspecified"", ""none"", ""unspecified"",{}},{Modelica.Electrical.Analog.Basic.Ground,Gnd,"""", ""public"", false, false, false, false, ""unspecified"", ""none"", ""unspecified"",{}}}
             -> some ""null"" string are present in the code, probably the AST is missing some elemets



5. - try to get the components annotations of the ChuaCircuit model:
         >> getComponentAnnotations(Modelica.Electrical.Analog.Examples.ChuaCircuit)
            {{},{},{},{},{},{},{}}
Error: Class Extent not found in scope Transformation while instantiating transformation.extent.


The problem is identical with the getNthComponentAnnotation() API."	defect	closed	critical		Interactive Model Editor Interface	1.5.0RC1	fixed		donida
