Select to view content in your preferred language

ArcGIS Pro startup script

113
4
Wednesday
DanCrawford
Occasional Contributor

Hello, is there a way I can include a startup python script when I create a new project based on a template?
I want to setup a default toolbox and geodatabase which aren't the defaults assigned by Pro.

Thanks.

0 Kudos
4 Replies
DanPatterson
MVP Esteemed Contributor

You can set a default toolbox, but not a bunch of them unless you specify a specific project to load or a template

default.png


... sort of retired...
0 Kudos
DanCrawford
Occasional Contributor

Thanks Dan.  I think that could work but I don't really want every new project to use the same geodatabase and toolbox.  At least I think that's what those general settings will do.  I only want to set the defaults on new projects based on this one template. 

I can work around the gdbase thing in my scripts I guess. 
For some reason my tools aren't coming into the template I create (from the share tab).  ArcPro builds a new empty toolbox based on the new project name.

I'll do some more playing around tmo.  Unfortunately, Pro is taking four hours to build my template file 😞

0 Kudos
DanPatterson
MVP Esteemed Contributor

Create a project template—ArcGIS Pro | Documentation

Optionally, check the Include Toolboxes option to include all project toolboxes and the data referenced by their tools.
If this option is not checked, project toolboxes, except the default toolbox, are not included. Toolboxes in connected folders are not considered project toolboxes and are not impacted by this setting.

So, I can't help further since, I work local and I don't need to do the sharesies thing.   It is that last line that got me thinking that if your toolboxes were in a master toolbox folder connection...

Good luck, 


... sort of retired...
0 Kudos
DanCrawford
Occasional Contributor

Thanks.  I do have the "include toolboxes" option selected but it still doesn't bring over my tools.

0 Kudos