ArcPad Scripting Object Model
Create Method
See Also  Send comments on this topic.
FileName
Required. A String that specifies the complete filepath of the shapefile or .DBF file.
ShapeType
Required. A Long that specifies the type of geometric shape associated with the shapefile.
pCoordSys
Optional. A CoordSys that specifies the coordinate system associated with the shapefile.
Recordset Collection : Create Method

Glossary Item Box

Description

Creates a new shapefile or DBF file.

Syntax

object.Create ( FileName, ShapeType [,pCoordSys] )

Parameters

FileName
Required. A String that specifies the complete filepath of the shapefile or .DBF file.
ShapeType
Required. A Long that specifies the type of geometric shape associated with the shapefile.
pCoordSys
Optional. A CoordSys that specifies the coordinate system associated with the shapefile.

Remarks

Source is a string specifying the filepath of the shapefile or .DBF file you are creating. If this file already exists, it will be overwritten. ShapeType is a long specifying the ShapeType of the shapefile.

The following ShapeType values are supported: ShapeType is a long specifying the ShapeType of the shapefile. The following ShapeType values are supported:

Value ShapeType
0 Null Shape
1 Point
3 PolyLine
5 Polygon
8 MultiPoint
11 PointZ
13 PolyLineZ
15 PolygonZ
18 MultiPointZ
21 PointM
23 PolyLineM
25 PolygonM
28 MuiltPointM

Pass a value of 0 for ShapeType when creating .DBF files. CoordSys is a CoordSys object specifying the coordinate system of the shapefile you are creating. [Optional].

Example

See Also

© 2012 All Rights Reserved.