Go to ET GeoWizards 12.x User Guide

Rotate Shapes

Go to ToolBox Implementation

Rotates the features of a feature layer according to user specified rotation point   and angle .

Inputs:

• A feature layer
• Point
• Polyline
• Polygon
• Input type  - a way the rotation point  will be defined
• input X,Y
• point from a feature layer
• Rotation angle - angle in decimal degrees, positive values will rotate the features counterclockwise and negative - clockwise

Outputs:

• New feature class
• The attributes are preserved
• The spatial reference of the input layer is preserved

Notes:

• There is a standard ArcGIS Rotate tool, but the Rotate Shapes Wizard gives more control over the operation, especially if multiple layers are to be moved
• If rotation point from a point layer is to be used
• Use New Feature Class function to create new point feature class
• Start editing
• Input Origin Point (snap can be used to place the point exactly at desired location)
• Stop editing
• Use this layer in the Rotate Shapes Wizard

Command line syntax

ET_GPRotateShapes<input_dataset> <out_feature_class><input_dataset> <out_feature_class> {rotation_angle} {origin_point_dataset} {Origin_X} {Origin_Y}

Parameters

Expression Explanation
<input_dataset> A Point feature class or feature layer
<out_feature_class> A String - the full name of the output feature class (A feature class with the same full name should not exist)
{rotation_angle} A Double - Rotation angle in Degrees - positive values will rotate the features counterclockwise and negative - clockwise
{origin_point_dataset} A Point feature class or feature layer. It must have at least one point to be used as origin of rotation.
{Origin_X} A Double - X of the origin point to be used for rotation
{Origin_Y} A Double - Y of the origin point to be used for rotation

Scripting syntax

ET_GPRotateShapes(input_dataset, out_feature_class,rotation_angle,"", Origin_X, Origin_Y)

See the explanations above:
<> - required parameter
{} - optional parameter

Example Python script:

 import arcpyarcpy.ImportToolbox("C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx")arcpy.gp.toolbox = "C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx")input_dataset = "C:\\data\\pg1.shp"result = "C:\\data\\fgdb_test.gdb\\rotated"arcpy.ET_GPRotateShapes(input_dataset, result, 45, "",0.00,0.00)