ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / TemplateType Enumeration
Example Example

In This Topic
    TemplateType Enumeration
    In This Topic
    Gets and sets the project system template type that will be used to create the new project
    Syntax
    Members
    MemberDescription
    Catalog Create a new project with an open catalog view. For example, create a project like this to manage your data.
    GlobalScene Create a new project with an open 3D global scene.
    LocalScene Create a new project with an open 3D local scene.
    Map Create a new project with an open 2D map.
    Untitled Start working in ArcGIS Pro without creating a project first. You can save a project later if you want to keep your work.
    Remarks

    Gets and sets the project system template type that will be used to create the new project Remarks: The selected template type will be applied when creating a new project.Supplying a full path to a template overrides this setting.The supplied template will be used instead of the supplied system template setting.

    Example
    Create a project using template available with ArcGIS Pro
    {
      //Settings used to create a new project
      CreateProjectSettings proTemplateSettings = new()
      {
        //Sets the project's name
        Name = projectName,
        //Path where new project will be stored in
        LocationPath = @"C:\Data\NewProject",
        //Select which Pro template you like to use
        TemplateType = TemplateType.Catalog
        //TemplateType = TemplateType.LocalScene
        //TemplateType = TemplateType.GlobalScene
        //TemplateType = TemplateType.Map
      };
      //Create the new project
      var project = Project.CreateAsync(proTemplateSettings).Result;
    
      // Use project
    }
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Core.TemplateType

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also