#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!?
Note:
See TracTickets
for help on using tickets.

Done in ea8dd85/OMEdit.