Maptitude GISDK Help

SetSetPosition()

Summary

Sets the position of a selection set on the current map layer.

 

Syntax

SetSetPosition(string set_name, integer position)

 

Argument Contents
set_name The name of the selection set
position The desired position of the set within the layer

 

Notes

Example

//Make sure that Adjacent is in the highest possible set position

setnames = GetSets()

pos = GetSetPosition("Adjacent")

if (pos) < (setnames.length+1) then do

     // Move Adjacent up one position at a time until it is last

     for u = pos to (setnames.length) do

          SetSetPosition("Adjacent", (u+1))

          end

     end

 

Error Codes

Error Type Meaning
NotFound The selection set does not exist
Error The position is invalid

 

See Also

Function Summary
GetSetPosition() Gets the position of a selection set on a layer

 

 

©2025 Caliper Corporation www.caliper.com