ConvertToLineDatabase()

Summary

Creates a line geographic file from a set of line or area features.

Syntax

ConvertToLineDatabase(string layer_set, string new_db_name, array options)

Argument Contents
layer_set The name of the layer or selection set
new_db_name The path and file name of the new geographic file
Option Type Contents
Label String A descriptive label for the geographic file
Layer Name String The name of the layer in the geographic file
Node Name String The name of the endpoint layer in the geographic file

Notes

  • Any features that intersect are split at the location of the intersection. The resulting pieces are separate entities in the resulting geographic file.

  • ConvertToLineDatabase() displays a progress bar. To add a Cancel button to the progress bar, precede the function call with an "on escape" clause. For more information, see Error Handling.

Example

ConvertToLineDatabase("Zones|", "boundary.dbd", {
{"Label", "Borders of Zones"},
{"Layer Name", "Border"}
})

Error Codes

Error Type Meaning
Error The layer or set name or one of the options is invalid
Escape The user clicked Cancel

See Also

Function Summary
ConvertToAreaDatabase() Creates an area geographic file from a set of line or area features
ExportGeography() Converts a geographic file between standard and compact format, or creates a new geographic file from a selection set