You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature enhancement request to allow specifying the location for outside connectors in interface classes.
Currently, if one want to increase the icon size when extending such classes the only option is using IconMap.
However, this rescales the connector icons as well and connection lines in the diagram layer are also improperly set by some Modelica tools like in the screenshot below (Dymola diagram view).
For instance the Fluid.Interfaces.PartialTwoPort will be modified with:
constant Integer port_a_x = -100
"x-coordinate of port_a center";
constant Integer port_a_y = 0
"y-coordinate of port_a center";
Modelica.Fluid.Interfaces.FluidPort_a port_a
...
"Fluid connector a (positive design flow direction is from port_a to port_b)"
annotation (Placement(transformation(extent={{port_a_x-10,port_a_y-10},{port_a_x+10,port_a_y+10}})));
(Using a constant instead of a parameter does not result in any change in the parameter dialogs and the constant is not part of an FMU export.)
The modifications are backward compatible.
The text was updated successfully, but these errors were encountered:
As a side note, I reported the Dymola icon drawing bug in April. I have been told that it has been corrected and that the fix will be available in Dymola 2024x
This would be a good addition in the base classes.
AntoineGautier
changed the title
Parameterization of port location for interface classes in Fluid
Parameterization of port placement for interface classes in Fluid
Sep 2, 2023
Reopening this issue as the changes that were implemented in #1782 and then reverted due to a bug in Dymola 2023 (#1795) are now fully supported by Dymola 2024x.
@justnielsen On a side note, after initial testing, it seems that the bug with IconMap and DiagramMap has not been fixed in Dymola 2024x. Incorrect graphical annotations are generated when connecting connectors which placement has been modified with IconMap or DiagramMap.
This is a feature enhancement request to allow specifying the location for outside connectors in interface classes.
Currently, if one want to increase the icon size when extending such classes the only option is using
IconMap
.However, this rescales the connector icons as well and connection lines in the diagram layer are also improperly set by some Modelica tools like in the screenshot below (Dymola diagram view).
For instance the
Fluid.Interfaces.PartialTwoPort
will be modified with:(Using a constant instead of a parameter does not result in any change in the parameter dialogs and the constant is not part of an FMU export.)
The modifications are backward compatible.
The text was updated successfully, but these errors were encountered: