Go to ET GeoWizards 12.x User Guide

Scale Shapes

Go to ToolBox Implementation

Scales the features of a feature layer according to user specified anchor point  X and Y scale factors .

Inputs:

Outputs:

Notes:

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPScaleShapes<input_dataset> <out_feature_class> {Scale_X} {Scale_Y} {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)
{Scale_X} A Double - defining the scale factor in X direction 
{Scale_Y} A Double - defining the scale factor in Y direction  
{origin_point_dataset} A Point feature class or feature layer. It must have at least one point to be used as origin for scaling.
{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_GPScaleShapes(input_dataset, out_feature_class,Scale_X, Scale_Y,"", Origin_X, Origin_Y)

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

Example Python script:

import arcpy
arcpy.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\\scaled"
arcpy.ET_GPScaleShapes(input_dataset, result, 2.0,1.0, "",0.00,0.00)
Copyright © Ianko Tchoukanski