VECSetSelection()

  VECGetSelection, VECRemoveSelection, and VECSetSelection

Description

VECSetSelection() is used to set the current selection on a vector layer from the given list of shapeids.

Call Signature

void VECSetSelection ( int/string filespec, int segment_num, int ptr selection, int selection_count )

Return Value

void

This has no return value.

Arguments

int/string filespec:

This can either be the handle returned by DBOpen(), or the name of an open file.

int segment_num:

The vector layer (segment) number being accessed.

int ptr selection:

The array of integer shapeid's to be set as the current selection.

int selection_count:

The number of entries in the array "selection" to use. If this is omitted, then the length of the whole array will be used.

Remarks

The VECSetSelection() call replaces the set of selected shapes on a vector layer with a new set. It is the caller's responsibility to ensure that the provided set of shapeids contains only shapes valid for the indicated layer. Changing the selection will trigger a JSelectionChangEvent on the JOLTVectorLayer object associated with this layer.

See also

GDB file functions

GDB vector file functions

VECGetSelection()

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.