Select to view content in your preferred language

How to call a Rotate tool

523
2
Jump to solution
10-01-2023 03:02 PM
EvgeniiSosnin
New Contributor II

Hi guys,

Could you, please, tell me how to call a rotation tool from a picture (that nice green circule)?I am writing a custom tool to create fishnet and allow a user to rotate a sketch.

EvgeniiSosnin_2-1696197457772.png

 

0 Kudos
1 Solution

Accepted Solutions
Wolf
by Esri Regular Contributor
Esri Regular Contributor

The tool is called: 

esri_editing_EditVerticesRotate

Wolf_0-1696277566981.png

This is how to programmatically execute the rotate tool; however, the subject polygon has to be selected.

var commandId = @"esri_editing_EditVerticesRotate";
var iCommand = FrameworkApplication.GetPlugInWrapper(commandId) as ICommand;
if (iCommand != null)
{
  if (iCommand.CanExecute(null)) iCommand.Execute(null);
}

 

 

View solution in original post

2 Replies
Wolf
by Esri Regular Contributor
Esri Regular Contributor

The tool is called: 

esri_editing_EditVerticesRotate

Wolf_0-1696277566981.png

This is how to programmatically execute the rotate tool; however, the subject polygon has to be selected.

var commandId = @"esri_editing_EditVerticesRotate";
var iCommand = FrameworkApplication.GetPlugInWrapper(commandId) as ICommand;
if (iCommand != null)
{
  if (iCommand.CanExecute(null)) iCommand.Execute(null);
}

 

 

EvgeniiSosnin
New Contributor II

Thank you so much!

0 Kudos