CreateProjectSettings projectSettings = new CreateProjectSettings() { //Sets the project's name Name = "New Project", //Path where new project will be stored in LocationPath = @"C:DataNewProject", //Sets the project template that will be used to create the new project TemplatePath = @"C:DataMyProject1CustomTemplate.aptx" }; //Create the new project await Project.CreateAsync(projectSettings);
Item mxdToImport = ItemFactory.Instance.Create(@"C:ProjectsRegionalSurveyLatestResults.mxd"); var addedMxd = await QueuedTask.Run( () => Project.Current.AddItem(mxdToImport as IProjectItem));