Opened 10 years ago

Closed 10 years ago

#3157 closed defect (fixed)

OMEdit ignores annotation(Dialog)

Reported by: Rüdiger Franke Owned by: Adrian Pop
Priority: high Milestone: 1.9.2
Component: Frontend Version: trunk
Keywords: Cc: Adrian Pop

Description

Recently we shifted parameter qualifiers from record elements to whole record instances in the PowerSystems library. The respective record elements were marked with annotation(Dialog) to still get them into the parameter dialog of a GUI.
See https://github.com/Modelica/PowerSystems/pull/5

OMEdit ignores these annotations. There finds models in the MSL that do the same and that do neither work, for instance:

Modelica.Mechanics.MultiBody.Visualizers.Advanced.Arrow

See also Modelica.UsersGuide.ReleaseNotes.Version_2_2_1 that introduced annotation(Dialog) to MultiBody.

Other models seem to work as soon as they decorate the Dialog annotation, e.g.:

Modelica.Blocks.Sources.RealExpression

with annotation(Dialog(group = "Time varying output signal"), ...)

Change History (4)

comment:1 by Adeel Asghar, 10 years ago

Cc: Adrian Pop added

Its because OMC ignores the empty Dialog annotation. The GUI receives this information,

>> getComponentAnnotations(Modelica.Mechanics.MultiBody.Visualizers.Advanced.Arrow)
<< {{},{},{},{},{},{Dialog("General","",true,-,true,"","","","","",false)},{},{},{},{},{},{},{},{},{}}

comment:2 by Rüdiger Franke, 10 years ago

Component: OMEditFrontend
Owner: changed from Adeel Asghar to somebody

comment:3 by Adrian Pop, 10 years ago

Owner: changed from somebody to Adrian Pop
Status: newaccepted

comment:4 by Adrian Pop, 10 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r24598.

Note: See TracTickets for help on using tickets.