V25.1.x 3D view not restored when model hits a breakpoint whale fast-forwarding

V25.1.x 3D view not restored when model hits a breakpoint whale fast-forwarding

guiroehe
Collaborator Collaborator
50 Views
1 Reply
Message 1 of 2

V25.1.x 3D view not restored when model hits a breakpoint whale fast-forwarding

guiroehe
Collaborator
Collaborator

Hello,

When a model is fast-forwarding and hits a breakpoint, the 3D and Model views are not restored. This is cumbersome, as one might want to debug events far on the simulated time. Having to click "run" and "stop" right after it alters the system state.
Is there a way to allow these views to be restored when the model is stopped by a breakpoint?

Thank you.

0 Likes
51 Views
1 Reply
Reply (1)
Message 2 of 2

kavika_faleumu
Autodesk
Autodesk

Hey @guiroehe, if you've hit a breakpoint in some code block, stop the model, and continue through the code until it's done executing, you'll notice that the 3D view is "locked" while fast-forwarding. That's because fastforward suspenses draw. I see two approaches that may work.

 

My first approach would be to just set the Run Speed to max and hit play (rather than "Fast Forward"). This will run fast without suspending draw.

My second approach (if you're set on using Fast Forward) is to try repainting the window (possibly with repaintall()). This will repaint all of the windows (including the suspended 3D view). It may take some clicking around to get the 3D view back during a fast-forward, so I don't recommend this approach; however, it's doable.

 

Hope this helps.

0 Likes