ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / GridUnit Class / CreateGridUnit Method / CreateGridUnit(Int32) Method
The grid unit factory code.

In This Topic
    CreateGridUnit(Int32) Method
    In This Topic
    Convenience method to quickly create a GridUnit instance using a factory code.
    Syntax
    public static GridUnit CreateGridUnit( 
       int factoryCode
    )
    Public Overloads Shared Function CreateGridUnit( _
       ByVal factoryCode As Integer _
    ) As GridUnit

    Parameters

    factoryCode
    The grid unit factory code.

    Return Value

    Remarks

    The available grid units.

    Factory Code Unit Name
    909000 MGRS (Military Grid Reference System)
    909001 USNG (United States National Grid)
    909002 UTM (Universal Transverse Mercator)
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also