How to set up the "create file geodatabase" tool in model builder

150
2
Jump to solution
2 weeks ago
EdwardSchoon
New Contributor

First off, it has been quite a few years since I have used Model Builder. I am using ArcGIS Pro 3.2.

I am trying to build a model that starts with the "create File Geodatabase" tool as the first operation. I would like the process to name the fgdb as "Name_mmddyyyy" where mmddyyyy is the current date if this is possible. If not I would like to have the user name the fgdb as a parameter to enter at the start of the process.

I am having a problem with where to put the variable and how to format for the date. Any help is appreciated. Thanks in advance.

ES

 

0 Kudos
1 Solution

Accepted Solutions
BobBooth1
Esri Contributor
2 Replies
BobBooth1
Esri Contributor

See this thread about the Calculate Value tool & dates:

https://community.esri.com/t5/modelbuilder-questions/can-arcgis-pro-modelbuilder-append-today-s-date...

Then use inline variable substitution to add the resulting string to the geodatabase name.

https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/modelbuilder/inline-variable-su...

EdwardSchoon
New Contributor

Thank you & others in the referenced links for this information. I got the gdb to name correctly. Now I am working on how to reference it later down the model.

0 Kudos