ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / CreatePresetTemplate Method
The layer the new template is to be added to.
The template name.
The features to include in the preset.
An optional point to use as the point where the preset is placed. If null is provided the centroid of the features will be used.

In This Topic
    CreatePresetTemplate Method
    In This Topic
    Creates a new preset template from the specified set of features.
    Syntax
    Public Shared Function CreatePresetTemplate( _
       ByVal layer As Layer, _
       ByVal templateName As String, _
       ByVal features As SelectionSet, _
       Optional ByVal hotPoint As MapPoint _
    ) As EditingTemplate

    Parameters

    layer
    The layer the new template is to be added to.
    templateName
    The template name.
    features
    The features to include in the preset.
    hotPoint
    An optional point to use as the point where the preset is placed. If null is provided the centroid of the features will be used.

    Return Value

    A Task yielding the newly created template. Null if it cannot be created.
    Exceptions
    ExceptionDescription
    Features cannot be null.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also