Opened 11 years ago

Closed 10 years ago

#2586 closed defect (duplicate)

Icon does not show in OMEdit

Reported by: massimo ceraolo Owned by: somebody
Priority: normal Milestone: 1.9.2
Component: Frontend Version: trunk
Keywords: Cc:

Description

I've created a model icon in another tool (dymola 2014). This does not show in OMEdit (r18954).
I've already discussed this in the forum and Adeel showed that the issue is related to an undefined heat port.

However this case should be handled by OM. Here is the icon-only model:

model justIcon 
equation 
  annotation(Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100,-100},{100,100}}), graphics), Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100,-100},{100,100}}), graphics={  Text(extent = {{-154,-47},{146,-87}}, textString = "%name", lineColor = {0,0,255}),Polygon(points = {{26,0},{-34,40},{-34,-40},{26,0}}, lineColor = {0,0,0}, fillColor = {255,255,255}, 
            fillPattern =  FillPattern.Solid),Line(points = {{-94,0},{96,0}}, color = {0,0,255}),Line(points = {{26,40},{26,-40}}, color = {0,0,255}),Line(points = {{26,20},{54,50},{54,76}}, color = {0,0,255}),Line(points = {{36,50},{56,30}}, color = {0,0,255}),Line(visible = useHeatPort, points = {{-4,-100},{-4,-20}}, color = {127,0,0}, smooth = Smooth.None, pattern = LinePattern.Dot),Rectangle(extent = {{-66,84},{68,62}}, lineColor = {0,0,255}, fillColor = {255,255,255}, 
            fillPattern =  FillPattern.Solid),Line(points = {{0,84},{0,106}}, color = {0,0,255}, smooth = Smooth.None)}), 
    uses(Modelica(version="3.2"))); 
end justIcon; 

Change History (2)

comment:1 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:2 by Adeel Asghar, 10 years ago

Resolution: duplicate
Status: newclosed

See #2081.

Note: See TracTickets for help on using tickets.