Open Table of Contents

Points To Regular Polygons

Go to ToolBox Implementation Go to .NET Implementation

Creates regular polygons from points in a point dataset and user defined number of sides, size and rotation angle. The source point will be located in the center of the polygons.

Inputs:

Outputs:

Notes:

Examples:

Size = 30 , Angle = 0, Number sides = 5
Option - Radius Inscribed

Size = 30 , Angle = 0, Number sides = 5
Option - Radius Circumscribed

Size = 30 , Angle = 0, Number sides = 5
Option - Side

RadiusIn

RadiusOut

Side
Size = 30 , Angle = 0, Number sides = 6
Option - Radius Circumscribed
Size = 30 , Angle = 0, Number sides = 7
Option - Radius Circumscribed
Size = 30 , Angle = 0, Number sides = 8
Option - Radius Circumscribed
Six Seven Eight

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPPointsToRegularPolygons <input_dataset> <out_feature_class> <number_sides>  <Radius In | Radius Out | Side> <Size> <size_field> <rotation_angle>

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)
<number_sides> An Integer defining the number of sides of the polygons to be created.
<Radius In | Radius Out | Side> Required. A String indicating the meaning of the <SIZE> parameter
  • Radius In - radius of the inscribed circle
  • Radius Out - radius of the circumscribed circle
  • Side - the side of the polygon
<Size> A Double representing the size (see above for options)
<size_field> A String representing the name of a field in the in the attribute table of the input dataset.  The field has the values for the size of the polygons to be created.
{rotation_angle} A Double representing the rotation angle (see above)

Scripting syntax

ET_GPPointsToRegularPolygons (input_dataset, out_feature_class,number_sides,size_represents, size, size_field, rotation_angle)

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

.NET implementation
(Go to TOP)

PointsToRegularPolygons(pInFC As IFeatureClass, sOutFName As String, iNumberSides As Integer, sSizeRepresents As String, Optional dSize As Double = 0, Optional sSizeField As String = "", Optional dRotationAngle As Double = 0) As IFeatureClass

Copyright Ianko Tchoukanski