Select to view content in your preferred language

Model builder --> Create GDB and copy iterated features to it

450
2
Jump to solution
03-22-2024 01:08 PM
KennethLindhardt1
Frequent Contributor

Hi, I can't seem to get this to work.

I have a folder with multiple GDB's

I need to create a new GDB and add all the features from the collection of GDB's.

I started by trying to do it without a few parameters, meaning only selecting the folder containing the GDB's.

A new GDB should then be created with the name of the folder selected, then iterating through the gdb's and exporting the content to the new GDB.

I can't figure out inline variables, so it will find the parametric folder, that equals the new gdb. name.

I can use the get path tool. Which will give me the path, name and extension. Then it would be great if I could just create %path%\%Name%+""+%Extension% but the extension don't include "." Trying to add it fails, it would just create a path like:
Myfolder\NameOfGdb"."gdb.

Even if I try to not make it smart and manually create input parameters, I can't make it work, maybe I'm just tired now.

Anyone who has a solution to this?

Thanks

0 Kudos
1 Solution

Accepted Solutions
Dale_Honeycutt
Frequent Contributor

Maybe the Calculate Value model tool will get you there?  In this example, I have two model variables, Path and extension.  

Dale_Honeycutt_0-1711160103593.png

 

View solution in original post

0 Kudos
2 Replies
Dale_Honeycutt
Frequent Contributor

Maybe the Calculate Value model tool will get you there?  In this example, I have two model variables, Path and extension.  

Dale_Honeycutt_0-1711160103593.png

 

0 Kudos
KennethLindhardt1
Frequent Contributor

Thank you I got it working 🙂

0 Kudos