Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#4026 closed defect (fixed)

OMEdit does not inherit coordinate system of model diagrams

Reported by: Rüdiger Franke Owned by: Adeel Asghar
Priority: high Milestone:
Component: OMEdit Version: v1.11.0
Keywords: Cc:

Description

DiagramExtent.Base defines a coordinate system. The derived model DiagramExtent.Test should use the same coordinate system.

package DiagramExtent
  model Base
    annotation (Diagram(coordinateSystem(extent = {{-120, -120}, {240, 140}}, initialScale = 0.1), graphics = {
      Line(origin = {60, 10}, points = {{-175, 125}, {175, -125}, {175, 125}, {-175, -125}, {-175, 125}}),
      Text(origin = {61, 124}, extent = {{-135, 24}, {135, -24}}, textString = "This text is placed inside the diagram area", fontName = "MS Shell Dlg 2")}));
  end Base;

  model Test
    extends Base;
  end Test;
end DiagramExtent;

DiagramExtent.Test uses the default coordinate system {{-100,-100},{100,100}} and only shows a part of the base model instead!?

Change History (2)

comment:1 by Adeel Asghar, 8 years ago

Resolution: fixed
Status: newclosed

Done in ea8dd85/OMEdit.

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

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.