ArcPy - Project Templates

322
1
08-18-2020 03:37 PM
sweston_doc
New Contributor

Does anyone know if it's possible to open a project template (.aptx) using ArcPy? Opening using arcpy.mp.ArcGISProject() doesn't appear to work and I can't see any way of creating a aprx off an aptx using ArcPy.

0 Kudos
1 Reply
DanPatterson
MVP Esteemed Contributor

Alphabetical list of arcpy.mp classes—ArcGIS Pro | Documentation 

As you found, you can access a project but not through a template

BUT

you can access tools through arctoolbox that perform that function

Extract Package (Data Management)—ArcGIS Pro | Documentation 

see the code sample

arcpy.ExtractPackage_management(......


... sort of retired...