SetMapUnits()
Summary
Sets the current map measurement unit.
Syntax
SetMapUnits(string unit_name)
| Argument | Contents |
|---|---|
| unit_name | The measurement unit (in the plural format) |
Notes
- GetAreaUnits()
-
Use SetMapUnits() to change the system from English units to metric units.
-
SetMapUnits() changes the measurement unit for all open maps.
Example
SetMapUnits("Miles")
SetMapUnits("Kilometers")
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The measurement unit is not recognized |
See Also
| Function | Summary |
|---|---|
| GetAreaUnitNames() | Gets a list of the available area measurement units |
| GetAreaUnits() | Gets the current area measurement units |
| GetMapUnitNames() | Gets a list of the available map measurement units |
| SetMapUnits() | Gets the current map measurement units |
| GetPaperUnitNames() | Gets a list of the available paper measurement units |
| GetPaperUnits() | Gets the current paper measurement unit |
| SetAreaUnits() | Sets the current area measurement units |
| SetDisplayUnits() | Set the display names for units, to be used in drop-down lists and legends |
| SetPaperUnits() | Sets the current paper measurement unit |