This sample takes two pairs of X, Y coordinates from a dBASE Table and creates a new standalone FeatureClass by creating a Polyline connecting these pairs of coordinates. This sample is intended to be used within the ArcCatalog application.
To run this sample, a dBASE file containing at at least four numeric columns and two other columns is required.
How to use:
Platforms: WindowsMinimum ArcGIS Release: 9.0
Steps for adding an extension (through Categories.exe):
- Start ArcCatalog. Select a dBASE file with fours columns of numeric data to be used as Polyline coordinates. The Table should also contain two other fields which will be copied to the new FeatureClass as attributes of the new Features.
- Open the Visual Basic Editor, and paste in the code from the module below.
- Change the constants at the start of the code to be the names of the fours columns of numeric data, and the columns to be used as attributes for the new Features.
- Run the MakeLineFC macro, ensuring that you have the dBASE file selected in the ArcCatalog TreeView.
||VBA Module containing the code to generate the FeatureClass.
Dataset, Fields, FeatureClass, PolylineKey Interfaces:
ITable, IFields, IFieldsEdit, IFeatureWorkspace, ICursorKey Members:
Send feedback on this sample