Maptitude GISDK Help

GetSetScale()

Summary

Gets the range of scales at which a selection set displays (autoscale).

 

Syntax

scales = GetSetScale(string set)

 

Argument Contents
set The name of the selection set

 

Returns

An array of two elements:

 

Element Type Contents
1 Real The minimum scale at which the layer displays, or null if there is no minimum
2 Real The maximum scale at which the layer displays, or null if there is no maximum

 

Notes

Example

// Display the minimum scale of Region selection set of the County layer

SetLayer("County")

scales = GetSetScale("Region")

if scales[1] = null then ShowMessage("There is no minimum scale.")

else     ShowMessage("The minimum scale is: " + r2s(scales[1]))

 

Error Codes

Error Type Meaning
NotFound The specified selection set does not exist

 

See Also

Function Summary
GetLayerAutoscale() Determines whether a layer is hidden in the current map due to autoscaling
GetLayerScale() Gets the range of scales at which a layer displays (autoscale)
SetSetScale() Sets the range of scales at which a selection set displays (autoscale)
SetLayerScale() Sets the range of scales at which a layer displays (autoscale)
SetScale() Sets the scale of a map

 

 

©2025 Caliper Corporation www.caliper.com