Returns or sets the linear unit code of the projected coordinate system.
Read-write property
object.ProjectionUnit = [ value ] |
Long
The ProjectionUnit property returns or sets the linear unit code of the projected coordinate system. You can use the LookupCode method to get the name of the linear unit and the LookupConstant method to get the conversion factor between the linear unit and meters. For example:
Set CS = Application.Map.CoordinateSystem
MsgBox CS.LookupConstant(CS.ProjectionUnit) & " " & CS.LookupCode(CS.ProjectionUnit) & " = 1 meter"
Set CS = Application.Map.CoordinateSystem
MsgBox CS.LookupConstant(CS.ProjectionUnit) & " " & CS.LookupCode(CS.ProjectionUnit) & " = 1 meter"