GetLayerAutoscale()
Summary
Determines whether a layer is hidden in the current map due to autoscaling.
Syntax
state = GetLayerAutoscale(string layer_name)
| Argument |
Contents |
| layer_name |
The name of the layer |
Returns
A string specifying the state of the layer:
| Value |
Meaning |
| None |
No autoscaling is set for the layer |
| On |
Autoscaling is set for the layer and the layer is visible at the scale of the current map |
| Off |
Autoscaling is set for the layer and the layer is not visible at the scale of the current map |
Example
state = GetLayerAutoscale("Counties")
if state = "Off" then ShowMessage("Counties are currently autoscaled off.")
Error Codes
| Error Type |
Meaning |
| NotFound |
The specified layer does not exist |
See Also