Opened 8 years ago

Closed 8 years ago

#4259 closed defect (fixed)

Omedit does not show a probably right annotation

Reported by: anonymous Owned by: Martin Sjölund
Priority: normal Milestone: 1.12.0
Component: Interactive Environment Version:
Keywords: Cc: Adrian Pop

Description

The model attached VarLenLine.mo has an icon created with Dymola, which seems correct.
However it is not displaied by Edit.

Attachments (2)

VarLenLine.mo (2.9 KB ) - added by anonymous 8 years ago.
VarLenLine.mos (137 bytes ) - added by Adeel Asghar 8 years ago.

Download all attachments as: .zip

Change History (6)

by anonymous, 8 years ago

Attachment: VarLenLine.mo added

comment:1 by Adeel Asghar, 8 years ago

Cc: Adrian Pop added
Component: OMEditInteractive Environment
Owner: changed from Adeel Asghar to Martin Sjölund
Status: newassigned

Because Dymola is generating wrong code or probably you have manually written wrong code.
If you remove linePattern = LinePattern.Dash, from line 26 then it will work fine.

Martin this is what I was talking about. If there is something wrong in the annotation then getIconAnnotation fails.

by Adeel Asghar, 8 years ago

Attachment: VarLenLine.mos added

comment:2 by Martin Sjölund, 8 years ago

This I guess is because elabGraphicsExp doesn't produce any error-messages and uses the graphics definitions from the built-in record. I can look into it to see how we can allow this to give warnings / notifications and simply proceeding regardless.

comment:3 by Martin Sjölund, 8 years ago

And of course... it calls elabCall, which is the general version of expression elaboration. And no error-messages can be displayed because they are all rolled back.

comment:4 by Martin Sjölund, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.