| 1 | package TestParameterIcon
|
|---|
| 2 | model M
|
|---|
| 3 | parameter Real p = 10;
|
|---|
| 4 | equation
|
|---|
| 5 |
|
|---|
| 6 | annotation(
|
|---|
| 7 | Icon(graphics = {Text(origin = {5, 5}, extent = {{-89, 79}, {89, -79}}, textString = "p = %p"), Rectangle(extent = {{-100, 100}, {100, -100}})}));end M;
|
|---|
| 8 |
|
|---|
| 9 | model S
|
|---|
| 10 | parameter Real q = 5;
|
|---|
| 11 | TestParameterIcon.M m annotation(
|
|---|
| 12 | Placement(visible = true, transformation(origin = {-7.10543e-15, -22}, extent = {{-40, -40}, {40, 40}}, rotation = 0)));
|
|---|
| 13 | equation
|
|---|
| 14 |
|
|---|
| 15 | annotation(
|
|---|
| 16 | Diagram(graphics = {Text(origin = {-1, 70}, extent = {{-41, 10}, {41, -10}}, textString = "q = %q")}));end S;
|
|---|
| 17 | equation
|
|---|
| 18 |
|
|---|
| 19 | end TestParameterIcon;
|
|---|