Hi,
my Addin changes the coordinate systems of some occurrences in a while(running) - loop. After each iteration, i want to update the 3D-View in Inventor to show the calculated changes. For this, i call the Update Method of the current View (ActiveView property of Application).
Unfortunately, the redraw does not happen unless i keep moving the mouse over the window. Is there another method / way to achieve the desired result (forced redrawing for smooth animations)? The Update method of the Document does not seem to work, either.
Using Inventor2011 64 Bit on Win7 (64Bit)
Gregor
Solved! Go to Solution.
Did you try calling both the Document.Update and the ActiveView.Update, in that order?
In Inventor 2010 and above, you could also call
Application.UserInterfaceManager.DoEvents
after the view update.
@MjDeck wrote:Did you try calling both the Document.Update and the ActiveView.Update, in that order?
No, i just tried ActiveView.Update and then Document.Update, but that did not work.
However, i found a solution that works fine:
Don't use a while(true)-style loop for these things. Use a Timer set to a reasonable interval that triggers a single step (Matrix/Transformation change + ActiveView.Update). I set the interval to 40ms so i have a nice smooth 25fps animation.