| Maptitude GISDK Help |
Gets the range of scales at which a selection set displays (autoscale).
scales = GetSetScale(string set)
| Argument | Contents |
|---|---|
| set | The name of the selection set |
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 |
GetSetScale() returns autoscaling for a selection set in the current layer.
The Selection selection set cannot be autoscaled.
// 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 Type | Meaning |
|---|---|
| NotFound | The specified selection set does not exist |
| 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 |