Ticket #5610: TestPrimitiveVisible.mo

File TestPrimitiveVisible.mo, 697 bytes (added by casella, 5 years ago)
Line 
1package TestPrimitiveVisible
2  model M1
3  equation
4
5    annotation(
6      Icon(graphics = {Text(origin = {-2, -3}, extent = {{-98, 103}, {102, 3}}, textString = "M1")}, coordinateSystem(initialScale = 0.1)));
7  end M1;
8
9  model M2
10    extends M1;
11  annotation(
12      IconMap(primitivesVisible = false),
13      Icon(graphics = {Text(origin = {-1, -49}, extent = {{-101, 49}, {101, -49}}, textString = "M2")}, coordinateSystem(initialScale = 0.1)));end M2;
14 
15  model Test
16  TestPrimitiveVisible.M2 m annotation(
17      Placement(visible = true, transformation(origin = {1, 1}, extent = {{-39, -39}, {39, 39}}, rotation = 0)));
18  equation
19 
20  end Test;
21end TestPrimitiveVisible;