Ticket #5610: TestPrimitiveVisible1.mo

File TestPrimitiveVisible1.mo, 901 bytes (added by Andrea Bartolini, 4 years ago)
Line 
1package TestPrimitiveVisible1
2 model M1
3 annotation(
4 Icon(graphics = {Text(origin = {-2, -3}, extent = {{-98, 103}, {102, 3}}, textString = "M1"), Rectangle(extent = {{-100, 100}, {100, -100}}), Text(origin = {0, -121}, lineColor = {0, 0, 255}, extent = {{-100, 15}, {100, -15}}, textString = "%name")}, coordinateSystem(initialScale = 0.1)),
5 Diagram);
6 end M1;
7
8 model M2
9 extends M1 annotation(
10 IconMap(primitivesVisible = false));
11 annotation(
12 Icon(graphics = {Text(origin = {-1, -49}, extent = {{-101, 49}, {101, -49}}, textString = "M2"), Rectangle(extent = {{-100, 100}, {100, -100}})}, coordinateSystem(initialScale = 0.1)));
13 end M2;
14
15 model Test
16 TestPrimitiveVisible1.M2 m2 annotation(
17 Placement(visible = true, transformation(origin = {2, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
18 equation
19
20 end Test;
21end TestPrimitiveVisible1;