Scale Shapes

Running programmatically

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

Inputs:

Outputs:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name ScaleShapes
<input dataset> A String representing the input layer.
<output dataset> A String - the full name of the output layer.
<Scale Factor X> A Double representing the Scale Factor in X direction.
<Scale Factor Y> A Double representing the Scale Factor in Y direction.
{Reference Dataset} A String representing the input layer. Must be of Point type. The first point of this dataset will be used as origin point.
{Origin X} A Double representing the X coordinate of the origin point.
{Origin Y} A Double representing the Y coordinate of the origin point.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "ScaleShapes", "input dataset", "output dataset", "Scale Factor X", "Scale Factor Y", "Reference Dataset"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "ScaleShapes" "input dataset" "output dataset" "Scale Factor X" "Scale Factor Y" "Reference Dataset"
.NET using ETGWOutX.dll ScaleShapes(input dataset, output dataset, Scale Factor X, Scale Factor Y, Reference Dataset)
ArcPy arcpy.ScaleShapes(input dataset, output dataset, "Scale Factor X", "Scale Factor Y", "Reference Dataset")

Notes:

(Go to TOP)