Dynamically change the view

Hello everyone,

I'm presently working on a C# addin and I'm trying to dynamicallymove the view (called ModelView I guess). I can't manage to obtaina fluid and nice result with the method I'm using now. Here is whatI'm doing :


doc = swApp.IActiveDoc2;
view = doc.IActiveView;

view.EnableGraphicsUpdate = false;
view.TranslateBy(tx, ty);
view.ZoomByFactor(1 + tz);
view.RotateAboutCenter(rx, ry);
view.EnableGraphicsUpdate = true;
view.RollBy(rz);

doc.WindowRedraw();



This method offers me the best framerate I could obtain for now.Using doc.GraphicsRedraw2(); seems to be worse, but does not induceflickering of the menus due to the whole window refresh I guess.

Have you got an idea of how I could get a better framerate as wellas edge simplification that occurs when moving the view thanks tothe standard middle mouse click ?

Cheers,

SolidworksApi macros