Maptitude GISDK Help

GetSetIDs()

Summary

Gets an array of the IDs of elements in a set.

 

Syntax

a = GetSetIDs(string lyr_set_name)

 

Argument

Contents

lyr_set_name

The name of the layer or selection set

 

Returns

An array of integer IDs.

 

Example

//Open BDOCUMENTS\CALIPER\\< product name>\TUTORIAL\NElayers.wrkz

tutorial_folder = RunMacro("G30 Tutorial Folder")

wrkz = OpenWorkspace(tutorial_folder + "NElayers.wrkz")

tutorial_folder = RunMacro("G30 Tutorial Folder")

wrkz = OpenWorkspace(tutorial_folder + "NElayers.wrkz")a = GetSetIDs("Place|>100,000")

ShowArray(a)

 

Notes

 

Error Codes

Error Type

Meaning

Not Found

The layer or set was not found

 

See Also

Function

Summary

CreateSet()

Creates a new, empty set on the current view

DeleteSet()

Deletes a set from the current view

GetRecords()

Gets an array of record handles for a selection set

GetSets()

Gets a list of the names of selection sets for a view

 

 

©2025 Caliper Corporation www.caliper.com