Maptitude GISDK Help |
Gets an array of the IDs of elements in a set.
a = GetSetIDs(string lyr_set_name)
Argument |
Contents |
lyr_set_name |
The name of the layer or selection set |
An array of integer IDs.
//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)
For large selection sets, GetSetIDs() will return a large array. Using and manipulating very large arrays may be inefficient. You can use IsMember() to detect if an element is a member of the set.
Error Type |
Meaning |
Not Found |
The layer or set was not found |
Function |
Summary |
Creates a new, empty set on the current view |
|
Deletes a set from the current view |
|
Gets an array of record handles for a selection set |
|
Gets a list of the names of selection sets for a view |
©2025 Caliper Corporation | www.caliper.com |