Rotating an Ielement object with feedback

Discussion created by gilad_segal on Jun 30, 2011
Latest reply on Jul 5, 2011 by agray1

I have been trying to create a rotation tool for graphic elements in arcEngine (9.3.1) using C#.

The tool ControlsRotateElementTool does not fulfill my demands because the rotation axis is set (by default) to the center of the element and can only be moved manually. It cannot be moved through code, and I want to set the rotation axis programmaticly.

I am looking for a way to create some sort of "DisplayFeedback" for the rotation.
Currently, I am calculating the angle of the rotation according to the mouse location and use ITransform2D to rotate the element. This way is not smooth nor fast.

Thanks in advanced for any comments!