ArcPad Scripting Object Model
ProjectionUnit Property
See Also  Send comments on this topic.
CoordSys Object : ProjectionUnit Property

Glossary Item Box

Description

Returns or sets the linear unit code of the projected coordinate system.

Property type

Read-write property

Syntax

object.ProjectionUnit = [ value ]

Return Type

Long

Remarks

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"

See Also

© 2013 All Rights Reserved.