Returns the conversion factor (to meters) of the specified constant.
object.LookupConstant ( Parameter ) |
- Parameter
- Required. A Variant that specifies the constant to lookup. This can be the name or code of the constant.
Double
Use the LookupConstant method to lookup the conversion factor (to meters) of unit codes returned by the GeographicUnit and ProjectionUnit properties. 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"