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
The problem is present with 1.22.3 and v1.23.0-dev-391-g7423fcddfa (64-bit) but not with 1.22.0. The root cause is probably some changes in the flipping/alignment behavior because unsymmetrical icons behave differently when flipped in 1.22.0 and 1.22.3.
For unsymmetrical icons the position in the diagram view does not equal the placement annotation in the text view leading to "jumps" when another action is performed and getModelInstance is called. After those jumps previously drawn connection lines are "hanging in the air".
Instantiate this class in another empty diagram layer. You can directly see that the red points marking the extent of instances do not match the actual extent. The read points are not located at the corners of the class instance.
Move the class instance to the upper left corner of the diagram. Now the red points match the instance's corner points but the text view looks like:
Even tough looking at the diagram layer, the instance is in the upper left corner (thus the left edge must be at x=-100), the left x axis position according to text view is -84-13=-97 and not -100.
4. When adding another class (e.g. Modelica.Mechanics.Rotational.Components.Fixed ) to the diagram layer the unsymetricalIcon jumps to the correct postion according to the text view.
5. However, when moving the unsymetricalIcon instance again the text view is not updated correctly again and steps 3 and 4 can be repated again with step 4 being any action that triggers getModelInstance like adding new instance, setting a parameter value, or adding a connection line.
Expected Behavior
The Diagram view and the text view's placement annotations always match also for unsymmetrical icons.
Version and OS
OpenModelica Version: 1.22.3 and v1.23.0-dev-391-g7423fcddfa (64-bit)
OS: Windows 10, 64 bit
MSL 4.0.0
Thanks for looking into this
Aaron Buntrock - Bosch Rexroth
The text was updated successfully, but these errors were encountered:
Description
The problem is present with 1.22.3 and v1.23.0-dev-391-g7423fcddfa (64-bit) but not with 1.22.0. The root cause is probably some changes in the flipping/alignment behavior because unsymmetrical icons behave differently when flipped in 1.22.0 and 1.22.3.
For unsymmetrical icons the position in the diagram view does not equal the placement annotation in the text view leading to "jumps" when another action is performed and
getModelInstance
is called. After those jumps previously drawn connection lines are "hanging in the air".Steps to Reproduce
Even tough looking at the diagram layer, the instance is in the upper left corner (thus the left edge must be at
x=-100
), the left x axis position according to text view is-84-13=-97
and not-100
.4. When adding another class (e.g.
Modelica.Mechanics.Rotational.Components.Fixed
) to the diagram layer theunsymetricalIcon
jumps to the correct postion according to the text view.5. However, when moving the
unsymetricalIcon
instance again the text view is not updated correctly again and steps 3 and 4 can be repated again with step 4 being any action that triggersgetModelInstance
like adding new instance, setting a parameter value, or adding a connection line.Expected Behavior
The Diagram view and the text view's placement annotations always match also for unsymmetrical icons.
Version and OS
Thanks for looking into this
Aaron Buntrock - Bosch Rexroth
The text was updated successfully, but these errors were encountered: