1 | package 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; |
---|
21 | end TestPrimitiveVisible; |
---|