<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcPy function to create new project in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579273#M92334</link>
    <description>&lt;P&gt;You can use the ConvertWebMapToProject function with a minimal map definition to get a project file in memory, which you can then save to disk:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;z = arcpy.mp.ConvertWebMapToArcGISProject("""{
	"mapOptions": {
		"extent": {
			"xmin": -12933906.537,
			"ymin": 3993856.886,
			"xmax": -12933371.998,
			"ymax": 3994375.189,
			"spatialReference": {
				"wkid": 102100
			}
		}
	},
	"operationalLayers": [],
	"baseMap": [],
	"exportOptions": {},
	"layoutOptions": {},
	"reportOptions": {}
}""").ArcGISProject.saveACopy(r"C:\path\to\project.aprx")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit hacky but it works. If you want a more comprehensive project as a base you're better off with&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;'s template method.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2025 21:02:41 GMT</pubDate>
    <dc:creator>DavidSolari</dc:creator>
    <dc:date>2025-01-27T21:02:41Z</dc:date>
    <item>
      <title>ArcPy function to create new project</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579243#M92328</link>
      <description>&lt;P&gt;I was wondering if there is a ArcPy function to create a new project from scratch given a root directory where I would want the project to be created.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 20:07:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579243#M92328</guid>
      <dc:creator>YahyaMasri</dc:creator>
      <dc:date>2025-01-27T20:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy function to create new project</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579248#M92329</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/801294"&gt;@YahyaMasri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a link to a similar post, would this work for you?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/arcpy-function-for-creating-a-new-arcgis-project/td-p/1119035" target="_blank"&gt;https://community.esri.com/t5/python-questions/arcpy-function-for-creating-a-new-arcgis-project/td-p/1119035&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The gist is to have a blank template project, and then copy that project to make a new blank one.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 20:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579248#M92329</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-01-27T20:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy function to create new project</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579251#M92330</link>
      <description>&lt;P&gt;Thanks for the quick reply, Cody!&lt;/P&gt;&lt;P&gt;Is there no other way to create a new project if there is for example no blank template project? Thanks for the help and the link!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 20:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579251#M92330</guid>
      <dc:creator>YahyaMasri</dc:creator>
      <dc:date>2025-01-27T20:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy function to create new project</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579255#M92331</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/801294"&gt;@YahyaMasri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No problem! From what I've found, it doesn't appear to currently be a function within the documentation, I saw someone had mentioned a create() function, but that doesn't exist.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Definitely suitable for an idea on the ideas forum!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 20:29:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579255#M92331</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-01-27T20:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy function to create new project</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579273#M92334</link>
      <description>&lt;P&gt;You can use the ConvertWebMapToProject function with a minimal map definition to get a project file in memory, which you can then save to disk:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;z = arcpy.mp.ConvertWebMapToArcGISProject("""{
	"mapOptions": {
		"extent": {
			"xmin": -12933906.537,
			"ymin": 3993856.886,
			"xmax": -12933371.998,
			"ymax": 3994375.189,
			"spatialReference": {
				"wkid": 102100
			}
		}
	},
	"operationalLayers": [],
	"baseMap": [],
	"exportOptions": {},
	"layoutOptions": {},
	"reportOptions": {}
}""").ArcGISProject.saveACopy(r"C:\path\to\project.aprx")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit hacky but it works. If you want a more comprehensive project as a base you're better off with&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;'s template method.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 21:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1579273#M92334</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-01-27T21:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy function to create new project</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1645736#M98553</link>
      <description>&lt;P&gt;This is by far the best workaround currently available at Pro 3.5.&amp;nbsp; I will say, the minimum webmap definition needed to get&amp;nbsp;ConvertWebMapToArcGISProject to work is:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"mapOptions":{"extent":{}}}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Aug 2025 17:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-function-to-create-new-project/m-p/1645736#M98553</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-08-26T17:50:57Z</dc:date>
    </item>
  </channel>
</rss>

