Opened 5 years ago

Closed 5 years ago

#5566 closed defect (fixed)

OMEdit no longer shows the 3D Animation windows

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: blocker Milestone: 1.14.0
Component: OMEdit Version:
Keywords: Cc:

Description

Steps to reproduce:

  • Start OMEdit
  • Open Modelica.Mechanics.MultiBody.Examples.DoublePendulum
  • Click on Simulate with Animation

The simulation runs correctly, but no animation window shows up, as explained in the documentation. One needs to open a new animation window, and load the simulation results manually.

Please restore this functionality in time for the 1.14.0 release.

Change History (8)

comment:1 by Adeel Asghar, 5 years ago

I can't reproduce this. It works as expected for me.

in reply to:  1 comment:2 by Francesco Casella, 5 years ago

Replying to adeas31:

I can't reproduce this. It works as expected for me.

I have "Tools|Options|Simulation|Switch to plotting perspective" disabled.

If I enable it, it works. If I disable it, when I manually switch to the plotting perspective, the animation is not loaded automatically.

comment:3 by Adeel Asghar, 5 years ago

Yes that is correct behavior. We don't have any queue where we store the active simulation. So it can't load the animation when you switch later manually. Enable switch to plotting perspective and simulate again.

in reply to:  3 comment:4 by Francesco Casella, 5 years ago

Replying to adeas31:

Yes that is correct behavior.

That depends on your definition of correct :)

From a user's perspective, if I push a "Simulate with animation" button, I expect to see the animation when I look for it the right place, i.e., the plotting perspective. Why should the "Switch to plotting perspective after simulation" flag be relevant with respect to that? That flags just means that I don't have to manually switch the perspective, it shouldn't have anything to do with loading the results from the .mat file.

We don't have any queue where we store the active simulation.

I'm sorry, but I don't understand this.

Even if the "Switch to plotting perspective" option is disabled, if I run a simulation and then later switch to the plotting perspective, I find the results already loaded in the variables browswer, which means the .mat file was actually loaded in the variables browser when the simulation was run. Can't we just do the same for the animation view?

comment:5 by Adeel Asghar, 5 years ago

From a user's perspective, if I push a "Simulate with animation" button, I expect to see the animation when I look for it the right place, i.e., the plotting perspective. Why should the "Switch to plotting perspective after simulation" flag be relevant with respect to that? That flags just means that I don't have to manually switch the perspective, it shouldn't have anything to do with loading the results from the .mat file.

Yeah that is right. I see what you mean. I will try to fix it real quick!

comment:6 by Francesco Casella, 5 years ago

Thank Adeel! :)

comment:7 by Adeel Asghar, 5 years ago

comment:8 by Adeel Asghar, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.