Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Size of text on connectors

Size of text on connectors

Consider the following sequence:
1) launch a Modelica tool and open an empty model
2) drag in a Modelica.Blocks.Interfaces.RealInput
3) drag in a Modelica.Blocks.Continuous.Integrator.
4) Do not resize anything.
The result is very different in Dymola and OpenModelica.
In OpenModelica the interface will have the same size of the integrator and text on the interface is very tiny.
Opposite to this in Dymola the interface will have a larger size than the integrator and text on the interface is roughly the same size of the integrator's.
Is there a mistake in one of the tools or there is a flaw in the MSL code of these two simple models?

It seems to me that the latter is true, since the text height on RealInput is 25 while the one on Integrator is 40.
But management of size elements in Modelica is so complex that I cannot judge well (cfr Otter's explanation on #1635 of Modelica issue tracking).

Re: Size of text on connectors

Yes it is the wrong MSL code. Notice the width. The width for RealInpout text is 0.
Note that the text size is calculated based on the width and height. If the font size attribute of text annotation is present then that fixed font size is used.

Adeel.

Re: Size of text on connectors

there is also ticket #1636 on trac.modelica.org.
So you think that the width issue dominates over the height issue #1635 in  in trac.modelica.org?.
Let see how Modelica.org will handle these two tickets.

There are 0 guests and 0 other users also viewing this topic
You are here: